summaryrefslogtreecommitdiff
path: root/app/controllers/passwords_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/passwords_controller.rb')
-rw-r--r--app/controllers/passwords_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/passwords_controller.rb b/app/controllers/passwords_controller.rb
index 28f113b5cbe..924acca53ea 100644
--- a/app/controllers/passwords_controller.rb
+++ b/app/controllers/passwords_controller.rb
@@ -22,8 +22,8 @@ class PasswordsController < Devise::PasswordsController
).first_or_initialize
unless user.reset_password_period_valid?
- flash[:alert] = 'Your password reset token has expired.'
- redirect_to(new_user_password_url(user_email: user['email']))
+ flash[:alert] = "Your password reset token has expired."
+ redirect_to(new_user_password_url(user_email: user["email"]))
end
end
end
@@ -56,11 +56,11 @@ class PasswordsController < Devise::PasswordsController
end
def throttle_reset
- return unless resource && resource.recently_sent_password_reset?
+ return unless resource&.recently_sent_password_reset?
# Throttle reset attempts, but return a normal message to
# avoid user enumeration attack.
redirect_to new_user_session_path,
- notice: I18n.t('devise.passwords.send_paranoid_instructions')
+ notice: I18n.t("devise.passwords.send_paranoid_instructions")
end
end