@@ -182,7 +182,7 class User < Principal | |||
|
182 | 182 | end |
|
183 | 183 | end |
|
184 | 184 | end |
|
185 |
user.update_ |
|
|
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_ |
|
|
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