From d2d24624af7f69ec30bff589504017b24f644030 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 28 Jul 2025 17:28:10 +0200 Subject: [PATCH] Set a correct event type on sign in after successful password reset [SCI-12135] --- app/controllers/users/passwords_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users/passwords_controller.rb b/app/controllers/users/passwords_controller.rb index 9b9644ab8..113a6a97a 100644 --- a/app/controllers/users/passwords_controller.rb +++ b/app/controllers/users/passwords_controller.rb @@ -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