mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-23 17:03:47 +01:00
LSformElement::password : Do not send mail if password is not set
This commit is contained in:
parent
170a5870b6
commit
c176249848
1 changed files with 6 additions and 0 deletions
|
@ -68,6 +68,12 @@ class LSformElement_password extends LSformElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Mail
|
//Mail
|
||||||
|
|
||||||
|
// Do not send mail if password is not set :
|
||||||
|
if (empty($return[$this -> name])) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($_POST['LSformElement_password_'.$this -> name.'_send'])) {
|
if (isset($_POST['LSformElement_password_'.$this -> name.'_send'])) {
|
||||||
if ($_POST['LSformElement_password_'.$this -> name.'_send']==1) {
|
if ($_POST['LSformElement_password_'.$this -> name.'_send']==1) {
|
||||||
$this -> sendMail = true;
|
$this -> sendMail = true;
|
||||||
|
|
Loading…
Reference in a new issue