mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
FIX# Comparing times in UTC
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user