FIX# Comparing times in UTC

This commit is contained in:
Siva Gollapalli
2015-12-15 15:17:11 +05:30
parent 76bbbb8ed5
commit 23933d2fb0

View File

@@ -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