##// END OF EJS Templates
Skip callbacks when updating last_login_on....
Jean-Philippe Lang -
r11064:9bf98bce26d9
parent child
Show More
@@ -182,7 +182,7 class User < Principal
182 182 end
183 183 end
184 184 end
185 user.update_attribute(:last_login_on, Time.now) if user && !user.new_record?
185 user.update_column(:last_login_on, Time.now) if user && !user.new_record?
186 186 user
187 187 rescue => text
188 188 raise text
@@ -195,7 +195,7 class User < Principal
195 195 if tokens.size == 1
196 196 token = tokens.first
197 197 if (token.created_on > Setting.autologin.to_i.day.ago) && token.user && token.user.active?
198 token.user.update_attribute(:last_login_on, Time.now)
198 token.user.update_column(:last_login_on, Time.now)
199 199 token.user
200 200 end
201 201 end
General Comments 0
You need to be logged in to leave comments. Login now