Browse Source

CLDC-4330: Remove unneeded if

pull/3321/head
samyou-softwire 1 week ago
parent
commit
a32a934c3b
  1. 2
      app/controllers/auth/passwords_controller.rb

2
app/controllers/auth/passwords_controller.rb

@ -37,7 +37,7 @@ class Auth::PasswordsController < Devise::PasswordsController
if resource.errors.empty?
resource.unlock_access! if resource.respond_to?(:unlock_access!)
resource.force_reset_password_on_confirmation = false if resource.force_reset_password_on_confirmation
resource.force_reset_password_on_confirmation = false
if Devise.sign_in_after_reset_password
set_flash_message!(:notice, password_update_flash_message)
resource.after_database_authentication

Loading…
Cancel
Save