Commit 6812554f authored by jplang's avatar jplang

Skip callbacks when updating last_login_on.

git-svn-id: https://svn.redmine.org/redmine/trunk@11294 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3b483478
......@@ -182,7 +182,7 @@ class User < Principal
end
end
end
user.update_attribute(:last_login_on, Time.now) if user && !user.new_record?
user.update_column(:last_login_on, Time.now) if user && !user.new_record?
user
rescue => text
raise text
......@@ -195,7 +195,7 @@ class User < Principal
if tokens.size == 1
token = tokens.first
if (token.created_on > Setting.autologin.to_i.day.ago) && token.user && token.user.active?
token.user.update_attribute(:last_login_on, Time.now)
token.user.update_column(:last_login_on, Time.now)
token.user
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment