@@ -182,7 +182,7 class User < Principal | |||||
182 | end |
|
182 | end | |
183 | end |
|
183 | end | |
184 | end |
|
184 | end | |
185 |
user.update_ |
|
185 | user.update_column(:last_login_on, Time.now) if user && !user.new_record? | |
186 | user |
|
186 | user | |
187 | rescue => text |
|
187 | rescue => text | |
188 | raise text |
|
188 | raise text | |
@@ -195,7 +195,7 class User < Principal | |||||
195 | if tokens.size == 1 |
|
195 | if tokens.size == 1 | |
196 | token = tokens.first |
|
196 | token = tokens.first | |
197 | if (token.created_on > Setting.autologin.to_i.day.ago) && token.user && token.user.active? |
|
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 | token.user |
|
199 | token.user | |
200 | end |
|
200 | end | |
201 | end |
|
201 | end |
General Comments 0
You need to be logged in to leave comments.
Login now