lib/tachiban.rb in tachiban-0.7.0 vs lib/tachiban.rb in tachiban-0.8.0
- old
+ new
@@ -131,10 +131,10 @@
The url will be valid for #{link_validity} #{time_unit}(s)."
end
# State the link_validity in seconds.
def password_reset_url_valid?(link_validity)
- Time.now > @user.password_reset_sent_at + link_validity
+ Time.now < @user.password_reset_sent_at + link_validity
end
end
end
::Hanami::Controller.configure do