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 Nov 26, 2024
1 parent 1bb2b00 commit e3fcbe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ def extlogin
session.delete('location_id')
user = User.find_by_id(session[:user])
login_user(user)
user.post_successful_login
end
end

Expand Down Expand Up @@ -217,6 +216,7 @@ def login_user(user)
store_default_taxonomy(user, 'location') unless session.has_key?(:location_id)
TopbarSweeper.expire_cache
telemetry_increment_counter(:successful_ui_logins)
user.post_successful_login
redirect_to (uri || helpers.current_hosts_path)
end

Expand Down

0 comments on commit e3fcbe5

Please sign in to comment.