Browse Source

fixup! update copy on password reset page if user is unconfirmed

also check if they've been sent a confirmation email

otherwise, this text shows if the user doesn't exist
CLDC-4033-improve-flow-for-unconfirmed-users
Samuel Young 2 months ago
parent
commit
78689057e0
  1. 2
      app/controllers/auth/passwords_controller.rb

2
app/controllers/auth/passwords_controller.rb

@ -67,7 +67,7 @@ protected
end
def after_sending_reset_password_instructions_path_for(_resource)
account_password_reset_confirmation_path(email: params.dig("user", "email"), unconfirmed: !resource.confirmed?)
account_password_reset_confirmation_path(email: params.dig("user", "email"), unconfirmed: resource.initial_confirmation_sent && !resource.confirmed?)
end
def after_resetting_password_path_for(resource)

Loading…
Cancel
Save