mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 20:25:22 +08:00
Merge pull request #8718 from okriuchykhin/ok_SCI_12135
Set a correct event type on sign in after successful password reset [SCI-12135]
This commit is contained in:
commit
37b9d3f7bb
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class Users::PasswordsController < Devise::PasswordsController
|
|||
flash_message = resource.active_for_authentication? ? :updated : :updated_not_active
|
||||
set_flash_message!(:notice, flash_message)
|
||||
resource.after_database_authentication if check_database_authentication?(resource)
|
||||
sign_in(resource_name, resource)
|
||||
sign_in(resource_name, resource, event: :authentication)
|
||||
else
|
||||
set_flash_message!(:notice, :updated_not_active)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue