mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSformElement::password: fix sendind email in create form
This commit is contained in:
parent
7cb8620cb5
commit
c9b2341dbf
1 changed files with 4 additions and 1 deletions
|
@ -152,7 +152,10 @@ class LSformElement_password extends LSformElement {
|
||||||
'mail' => $mail,
|
'mail' => $mail,
|
||||||
'pwd' => $return[$this -> name][0]
|
'pwd' => $return[$this -> name][0]
|
||||||
);
|
);
|
||||||
$this -> attr_html -> attribute -> addObjectEvent('after_modify', $this, 'send');
|
if ($this -> form -> idForm == 'create')
|
||||||
|
$this -> attr_html -> attribute -> addObjectEvent('after_create', $this, 'send');
|
||||||
|
else
|
||||||
|
$this -> attr_html -> attribute -> addObjectEvent('after_modify', $this, 'send');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $retval;
|
return $retval;
|
||||||
|
|
Loading…
Reference in a new issue