1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

fix(authentication): Fix issues when users try to logout (#603)

Run set last login information action only when the user exist. Thus preventing running it after the logout method, which was causing an error
This commit is contained in:
Pablo Porto 2024-04-08 13:26:46 +02:00 committed by GitHub
parent d29d465a3c
commit 00a42be5c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@ module Authentication
included do
before_action :authenticate_user!
after_action :set_last_login_at
after_action :set_last_login_at, if: -> { Current.user }
end
class_methods do