Update 'last_login_on', refs #8
This commit is contained in:
parent
595f704479
commit
0a9ff59a1a
|
@ -40,6 +40,7 @@ module RedmineCAS
|
||||||
|
|
||||||
return cas_user_not_found if user.nil?
|
return cas_user_not_found if user.nil?
|
||||||
return cas_account_pending unless user.active?
|
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))
|
user.update_attributes(RedmineCAS.user_extra_attributes_from_session(session))
|
||||||
if RedmineCAS.single_sign_out_enabled?
|
if RedmineCAS.single_sign_out_enabled?
|
||||||
# logged_user= would start a new session and break single sign-out
|
# logged_user= would start a new session and break single sign-out
|
||||||
|
|
Reference in New Issue