From 1692b42bf0a5faf81ea0ca228ec300ead4af8d83 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 11 Apr 2011 12:17:52 +0200 Subject: [PATCH] LSformElement :: password : Fixed possibility to disable verify feature in configuration --- public_html/includes/class/class.LSformElement_password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/includes/class/class.LSformElement_password.php b/public_html/includes/class/class.LSformElement_password.php index 4c517b15..8d8ba2ae 100644 --- a/public_html/includes/class/class.LSformElement_password.php +++ b/public_html/includes/class/class.LSformElement_password.php @@ -142,7 +142,7 @@ class LSformElement_password extends LSformElement { $params = array( 'generate' => ($this -> params['html_options']['generationTool']==True), 'viewHash' => ($this -> params['html_options']['viewHash']==True), - 'verify' => (!$this -> attr_html -> attribute -> ldapObject-> isNew()) + 'verify' => ( (!$this -> attr_html -> attribute -> ldapObject-> isNew()) && ( (isset($this -> params['html_options']['verify']) && $this -> params['html_options']['verify']) || (!isset($this -> params['html_options']['verify'])) ) ) ); if (isset($this -> params['html_options']['mail'])) { $params['mail'] = $this -> params['html_options']['mail'];