use new password after self password change (RFE 3446350)

This commit is contained in:
Roland Gruber 2012-02-09 17:50:08 +00:00
parent 03394bb8a1
commit 65cb60442b
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ March 2012 3.7
-> PDF export
- New translation: Slovakian
- removed phpGroupWare support (project no longer exists)
- Use new password after self password change (RFE 3446350)
- LAM Pro:
-> Password self reset can send password notification mails
-> Zarafa archiver support

View File

@ -1723,6 +1723,11 @@ class accountContainer {
}
else {
logNewMessage(LOG_NOTICE, '[' . $ldapUser .'] Modified DN: ' . $DNs[$i]);
// check if the password of the currently logged in user was changed
$lamAdmin = $_SESSION['ldap']->decrypt_login();
if ((strtolower($DNs[$i]) == strtolower($lamAdmin[0])) && isset($attributes[$DNs[$i]]['info']['userPasswordClearText'][0])) {
$_SESSION['ldap']->encrypt_login($DNs[$i], $attributes[$DNs[$i]]['info']['userPasswordClearText'][0]);
}
}
}
// add attributes