@@ -325,7 +325,8 class User < Principal | |||||
325 |
|
325 | |||
326 | # Returns true if the user password has expired |
|
326 | # Returns true if the user password has expired | |
327 | def password_expired? |
|
327 | def password_expired? | |
328 |
|
|
328 | period = Setting.password_max_age.to_i | |
|
329 | if period.zero? | |||
329 | false |
|
330 | false | |
330 | else |
|
331 | else | |
331 | changed_on = self.passwd_changed_on || Time.at(0) |
|
332 | changed_on = self.passwd_changed_on || Time.at(0) |
General Comments 0
You need to be logged in to leave comments.
Login now