Browse Source

CLDC-4033: Correct name of resource variable

this override function is passed a resource symbol, not a resource object
CLDC-4033-improve-flow-for-unconfirmed-users
Samuel Young 2 weeks ago
parent
commit
d79ec2aca1
  1. 2
      app/controllers/auth/passwords_controller.rb

2
app/controllers/auth/passwords_controller.rb

@ -66,7 +66,7 @@ protected
resource.need_two_factor_authentication?(request) ? :updated_2FA : :updated resource.need_two_factor_authentication?(request) ? :updated_2FA : :updated
end end
def after_sending_reset_password_instructions_path_for(resource) def after_sending_reset_password_instructions_path_for(_resource_name)
account_password_reset_confirmation_path(email: params.dig("user", "email"), unconfirmed: resource.initial_confirmation_sent && !resource.confirmed?) account_password_reset_confirmation_path(email: params.dig("user", "email"), unconfirmed: resource.initial_confirmation_sent && !resource.confirmed?)
end end

Loading…
Cancel
Save