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:
Martin Artnik 2025-08-07 11:04:22 +02:00 committed by GitHub
commit 37b9d3f7bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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