use new password after self password change (RFE 3446350)
This commit is contained in:
parent
03394bb8a1
commit
65cb60442b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue