We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8082ee commit 36001b7Copy full SHA for 36001b7
1 file changed
app/controllers/concerns/authenticatable.rb
@@ -35,8 +35,8 @@ def authenticate_request!
35
Thread.current[:current_user_id] = @current_user.id
36
Thread.current[:current_user_role] = @current_user.role
37
38
- # Update last login time
39
- @current_user.update_last_login! if should_update_last_login?
+ # Update last login time (skip audit log for this update)
+ @current_user.update_column(:last_login_at, Time.current) if should_update_last_login?
40
rescue Authentication::Services::JwtService::AuthenticationError => e
41
Rails.logger.error("JWT Authentication error: #{e.class} - #{e.message}")
42
render_unauthorized(e.message)
0 commit comments