Test broken by r11296.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11297 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
9e0723c11b
commit
137aa1cf66
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue