FIX# Comparing times in UTC
This commit is contained in:
parent
76bbbb8ed5
commit
23933d2fb0
|
@ -83,7 +83,7 @@ module Devise
|
|||
# reset_password_period_valid? # will always return false
|
||||
#
|
||||
def reset_password_period_valid?
|
||||
reset_password_sent_at && reset_password_sent_at.utc >= self.class.reset_password_within.ago
|
||||
reset_password_sent_at && reset_password_sent_at.utc >= self.class.reset_password_within.ago.utc
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
Loading…
Reference in New Issue