Commit 1bf2ef42 authored by jplang's avatar jplang

Test broken by r14265 (#19458).

git-svn-id: https://svn.redmine.org/redmine/trunk@14266 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent bd34900d
......@@ -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)
......
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