LSformElement::password : consider password have not been change if new value and...
authorBenjamin Renard <brenard@easter-eggs.com>
Mon, 23 May 2011 10:04:04 +0000 (12:04 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Mon, 23 May 2011 10:04:04 +0000 (12:04 +0200)
public_html/includes/class/class.LSformElement_password.php

index b254315..c74d2ed 100644 (file)
@@ -60,7 +60,7 @@ class LSformElement_password extends LSformElement {
         return true;
       }
       
-      if ($this -> verifyPassword($return[$this -> name][0])) {
+      if ($this -> verifyPassword($return[$this -> name][0]) || (empty($return[$this -> name][0]) && empty($val))) {
         LSdebug("Password : no change");
         unset($return[$this -> name]);
         $this -> form -> _notUpdate[$this -> name] == true;