Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 09:20:29 +01:00
Ensure after_signup runs for oauth singups
Dieser Commit ist enthalten in:
Ursprung
ad7b2944f0
Commit
8f3d1796eb
2 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen
9
extensions/users_controller.rb
Normale Datei
9
extensions/users_controller.rb
Normale Datei
|
@ -0,0 +1,9 @@
|
|||
module CustomWizardUsersController
|
||||
def account_created
|
||||
if current_user.present? &&
|
||||
(wizard = CustomWizard::Wizard.after_signup(current_user))
|
||||
return redirect_to "/w/#{wizard.id.dasherize}"
|
||||
end
|
||||
super
|
||||
end
|
||||
end
|
|
@ -74,6 +74,7 @@ after_initialize do
|
|||
../serializers/custom_wizard/log_serializer.rb
|
||||
../extensions/extra_locales_controller.rb
|
||||
../extensions/invites_controller.rb
|
||||
../extensions/users_controller.rb
|
||||
../extensions/wizard_field.rb
|
||||
../extensions/wizard_step.rb
|
||||
].each do |path|
|
||||
|
@ -153,6 +154,7 @@ after_initialize do
|
|||
|
||||
::ExtraLocalesController.prepend ExtraLocalesControllerCustomWizard
|
||||
::InvitesController.prepend InvitesControllerCustomWizard
|
||||
::UsersController.prepend CustomWizardUsersController
|
||||
::Wizard::Field.prepend CustomWizardFieldExtension
|
||||
::Wizard::Step.prepend CustomWizardStepExtension
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren