Skip to content

Commit

Permalink
Fixes #38037 - Update last login time for External Auth user
Browse files Browse the repository at this point in the history
  • Loading branch information
hao-yu committed Jan 27, 2025
1 parent 1bb2b00 commit 614c1ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def self.find_or_create_external_user(attrs, auth_source_name)
user.usergroups = new_usergroups.uniq
end

user.post_successful_login
user
# not existing user and creating is disabled by settings
elsif auth_source_name.nil?
Expand Down

0 comments on commit 614c1ee

Please sign in to comment.