0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

ensure after_signup is not triggered on password reset

Dieser Commit ist enthalten in:
Angus McLeod 2018-09-25 21:04:08 +10:00
Ursprung b78c2f0c0f
Commit 7952fd03b1

Datei anzeigen

@ -9,7 +9,7 @@ require_dependency 'wizard/step'
custom_redirect = false
if user && wizard_id = CustomWizard::Wizard.after_signup
if user && user.first_seen_at.blank? && wizard_id = CustomWizard::Wizard.after_signup
wizard = CustomWizard::Wizard.create(user, wizard_id)
if !wizard.completed? && wizard.permitted?