mirror of
https://github.com/redmine/redmine.git
synced 2026-03-25 22:00:43 +01: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user