mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-25 19:33:00 +01:00
LSformElement::password: fix using LSldapobject getDisplayFData method instead of getFData
This commit is contained in:
parent
d94f96498a
commit
59d6d0865d
1 changed files with 9 additions and 3 deletions
|
@ -193,12 +193,18 @@ class LSformElement_password extends LSformElement {
|
||||||
|
|
||||||
if ($params['confirmChange']) {
|
if ($params['confirmChange']) {
|
||||||
$defaultConfirmChangeQuestion = ___('%{label}: Do you confirm the password change?');
|
$defaultConfirmChangeQuestion = ___('%{label}: Do you confirm the password change?');
|
||||||
$params['confirmChangeQuestion'] = getFData(__($this -> getParam('html_options.confirmChangeQuestion', $defaultConfirmChangeQuestion)), $this -> label);
|
$params['confirmChangeQuestion'] = $this -> attr_html -> attribute -> ldapObject -> getDisplayFData(
|
||||||
|
__($this -> getParam('html_options.confirmChangeQuestion', $defaultConfirmChangeQuestion)),
|
||||||
|
$this -> label
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($params['confirmInput']) {
|
if ($params['confirmInput']) {
|
||||||
$defaultConfirmInputError = ___('Passwords entered did not match.');
|
$defaultConfirmInputError = ___('Passwords entered did not match.');
|
||||||
$params['confirmInputError'] = getFData(__($this -> getParam('html_options.confirmInputError', $defaultConfirmInputError)), $this -> label);
|
$params['confirmInputError'] = $this -> attr_html -> attribute -> ldapObject -> getDisplayFData(
|
||||||
|
__($this -> getParam('html_options.confirmInputError', $defaultConfirmInputError)),
|
||||||
|
$this -> label
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this -> getParam('html_options.mail')) {
|
if ($this -> getParam('html_options.mail')) {
|
||||||
|
@ -309,7 +315,7 @@ class LSformElement_password extends LSformElement {
|
||||||
|
|
||||||
self :: log_info($this -> attr_html -> attribute -> ldapObject -> getDn().": send new '".$this -> name."' to '$mail'.");
|
self :: log_info($this -> attr_html -> attribute -> ldapObject -> getDn().": send new '".$this -> name."' to '$mail'.");
|
||||||
$this -> attr_html -> attribute -> ldapObject -> registerOtherValue('password', $this -> sendMail['pwd']);
|
$this -> attr_html -> attribute -> ldapObject -> registerOtherValue('password', $this -> sendMail['pwd']);
|
||||||
$msg = $this -> attr_html -> attribute -> ldapObject -> getFData($this -> sendMail['msg']);
|
$msg = $this -> attr_html -> attribute -> ldapObject -> getDisplayFData($this -> sendMail['msg']);
|
||||||
$headers = $this -> getParam('html_options.mail.headers', array());
|
$headers = $this -> getParam('html_options.mail.headers', array());
|
||||||
$bcc = $this -> getParam('html_options.mail.bcc');
|
$bcc = $this -> getParam('html_options.mail.bcc');
|
||||||
if ($bcc)
|
if ($bcc)
|
||||||
|
|
Loading…
Reference in a new issue