From e3fcbe5b69fbf7be1c8c08484be42562beba643b Mon Sep 17 00:00:00 2001 From: Hao Yu Date: Tue, 26 Nov 2024 16:26:50 +1000 Subject: [PATCH] Fixes #38037 - Update last login time for External Auth user --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index d95cdd90b8c..1b9559782f6 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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 @@ -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