Commit b75ec43a authored by jplang's avatar jplang

Test broken by r11296.

git-svn-id: https://svn.redmine.org/redmine/trunk@11297 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3fa0928d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment