LSformElement :: password : Fixed possibility to disable verify feature in configuration

This commit is contained in:
Benjamin Renard 2011-04-11 12:17:52 +02:00
parent d7688e2c71
commit 1692b42bf0

View 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'];