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:
Benjamin Renard 2010-04-26 16:51:46 +02:00
parent 403698f27e
commit 6ddc473e4b

View file

@ -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) {