git-svn-id: http://svn.redmine.org/redmine/trunk@14266 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/3.1.0
@@ -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) |