Update 'last_login_on', refs #8

This commit is contained in:
Nils Caspar 2014-03-29 17:00:29 +01:00
parent 595f704479
commit 0a9ff59a1a
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ module RedmineCAS
return cas_user_not_found if user.nil?
return cas_account_pending unless user.active?
user.update_attribute(:last_login_on, Time.now)
user.update_attributes(RedmineCAS.user_extra_attributes_from_session(session))
if RedmineCAS.single_sign_out_enabled?
# logged_user= would start a new session and break single sign-out