stupid_auth 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stupid_auth/model.rb +2 -1
- metadata +2 -2
data/lib/stupid_auth/model.rb
CHANGED
@@ -55,7 +55,8 @@ module StupidAuth
|
|
55
55
|
|
56
56
|
def set_logged_in_at!
|
57
57
|
return nil unless respond_to? :logged_in_at
|
58
|
-
update_attribute :
|
58
|
+
update_attribute :previous_log_in_at, self.logged_in_at if respond_to? :previous_log_in_at
|
59
|
+
update_attribute :logged_in_at, Time.zone.now
|
59
60
|
end
|
60
61
|
|
61
62
|
# Hash the provided password and persist it, along with a salt
|