Changed password expiry date value Signed-off-by: Eric Poirier <eric@eclipse.org>
diff --git a/eclipse.org-common/classes/users/siteLogin.class.php b/eclipse.org-common/classes/users/siteLogin.class.php index e1b6e84..d9088aa 100644 --- a/eclipse.org-common/classes/users/siteLogin.class.php +++ b/eclipse.org-common/classes/users/siteLogin.class.php
@@ -1343,8 +1343,10 @@ $dn = $this->Ldapconn->getDNFromUID($this->user_uid); // Get shadowLastChange in seconds $lastChange = ($this->Ldapconn->getLDAPAttribute($dn, "shadowLastChange")) * 86400; + // Get the number of days + $shadowMax = $this->Ldapconn->getLDAPAttribute($dn, "shadowMax"); // Set the expiry date - $expiryDate = strtotime('+6 month', $lastChange); + $expiryDate = strtotime('+'.$shadowMax.' days', $lastChange); $expireSoon = strtotime('-30 days', $expiryDate); if ($this->Friend->getIsCommitter()) { $numberOfDays = round(($expiryDate - time()) / (3600*24));