mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSformElement_password : Added check of the new password to verify if it's different as the current password (Cf Bug repport #1962).
This commit is contained in:
parent
403698f27e
commit
6ddc473e4b
1 changed files with 7 additions and 0 deletions
|
@ -60,6 +60,13 @@ class LSformElement_password extends LSformElement {
|
|||
return true;
|
||||
}
|
||||
|
||||
if ($this -> verifyPassword($return[$this -> name][0])) {
|
||||
LSdebug("Password : no change");
|
||||
unset($return[$this -> name]);
|
||||
$this -> form -> _notUpdate[$this -> name] == true;
|
||||
return true;
|
||||
}
|
||||
|
||||
//Mail
|
||||
if (isset($_POST['LSformElement_password_'.$this -> name.'_send'])) {
|
||||
if ($_POST['LSformElement_password_'.$this -> name.'_send']==1) {
|
||||
|
|
Loading…
Reference in a new issue