summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/token.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/token.rb b/app/models/token.rb
index c14175ea8..4c0598e60 100644
--- a/app/models/token.rb
+++ b/app/models/token.rb
@@ -45,7 +45,7 @@ class Token < ActiveRecord::Base
token = find_by_action_and_value(action, key)
if token && token.user && token.user.active?
- if validity_days.nil? || (token.created_on > validity_days.ago)
+ if validity_days.nil? || (token.created_on > validity_days.days.ago)
token.user
end
end