LSformElement :: password : Fixed possibility to disable verify feature in configuration
authorBenjamin Renard <brenard@easter-eggs.com>
Mon, 11 Apr 2011 10:17:52 +0000 (12:17 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Mon, 11 Apr 2011 10:17:52 +0000 (12:17 +0200)
public_html/includes/class/class.LSformElement_password.php

index 4c517b1..8d8ba2a 100644 (file)
@@ -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'];