1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-01 21:29:40 +00:00

Test broken by r14265 (#19458).

git-svn-id: http://svn.redmine.org/redmine/trunk@14266 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-05-10 12:57:16 +00:00
parent c8fb0956d1
commit 738ecf1365

View File

@ -325,7 +325,8 @@ class User < Principal
# Returns true if the user password has expired
def password_expired?
if Setting.password_max_age.to_i.zero?
period = Setting.password_max_age.to_i
if period.zero?
false
else
changed_on = self.passwd_changed_on || Time.at(0)