From 6ddc473e4baf1d5497f56cbeebb992bb7eabf831 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 26 Apr 2010 16:51:46 +0200 Subject: [PATCH] LSformElement_password : Added check of the new password to verify if it's different as the current password (Cf Bug repport #1962). --- .../includes/class/class.LSformElement_password.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public_html/includes/class/class.LSformElement_password.php b/public_html/includes/class/class.LSformElement_password.php index 04f6217f..dce28f98 100644 --- a/public_html/includes/class/class.LSformElement_password.php +++ b/public_html/includes/class/class.LSformElement_password.php @@ -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) {