Browse Source

Test broken by r14265 (#19458).

git-svn-id: http://svn.redmine.org/redmine/trunk@14266 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.1.0
Jean-Philippe Lang 9 years ago
parent
commit
738ecf1365
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      app/models/user.rb

+ 2
- 1
app/models/user.rb 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)

Loading…
Cancel
Save