parent
0049f921b9
commit
88ab53730b
|
@ -364,7 +364,9 @@ class User < Principal
|
|||
end
|
||||
end
|
||||
end
|
||||
last_login_on = user.last_login_on.nil? ? '' : user.last_login_on.to_s
|
||||
unless user.nil?
|
||||
last_login_on = user.last_login_on.nil? ? '' : user.last_login_on.to_s
|
||||
end
|
||||
user.update_column(:last_login_on, Time.now) if user && !user.new_record?
|
||||
[user, last_login_on]
|
||||
rescue => text
|
||||
|
|
Loading…
Reference in New Issue