mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +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,6 +152,9 @@ class LSformElement_password extends LSformElement {
|
||||||
'mail' => $mail,
|
'mail' => $mail,
|
||||||
'pwd' => $return[$this -> name][0]
|
'pwd' => $return[$this -> name][0]
|
||||||
);
|
);
|
||||||
|
if ($this -> form -> idForm == 'create')
|
||||||
|
$this -> attr_html -> attribute -> addObjectEvent('after_create', $this, 'send');
|
||||||
|
else
|
||||||
$this -> attr_html -> attribute -> addObjectEvent('after_modify', $this, 'send');
|
$this -> attr_html -> attribute -> addObjectEvent('after_modify', $this, 'send');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue