stupid_auth 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|