Skip to content

Commit 36001b7

Browse files
committed
fix: bypasses all callbacks
1 parent f8082ee commit 36001b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/controllers/concerns/authenticatable.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def authenticate_request!
3535
Thread.current[:current_user_id] = @current_user.id
3636
Thread.current[:current_user_role] = @current_user.role
3737

38-
# Update last login time
39-
@current_user.update_last_login! if should_update_last_login?
38+
# Update last login time (skip audit log for this update)
39+
@current_user.update_column(:last_login_at, Time.current) if should_update_last_login?
4040
rescue Authentication::Services::JwtService::AuthenticationError => e
4141
Rails.logger.error("JWT Authentication error: #{e.class} - #{e.message}")
4242
render_unauthorized(e.message)

0 commit comments

Comments
 (0)