mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSformElement::password: Add confirmChangeQuestion parameter
This commit is contained in:
parent
c0f0a0645c
commit
079f39ab4b
5 changed files with 20 additions and 2 deletions
|
@ -25,6 +25,7 @@
|
||||||
'verify' => [booléen], // Activation de l'outil de vérification du mot de passe
|
'verify' => [booléen], // Activation de l'outil de vérification du mot de passe
|
||||||
'viewHash' => [booléen], // Activation de l'outil de visualisation du mot de passe haché
|
'viewHash' => [booléen], // Activation de l'outil de visualisation du mot de passe haché
|
||||||
'confirmChange' => [booléen], // Activation de la confirmation en cas de changement du mot de passe
|
'confirmChange' => [booléen], // Activation de la confirmation en cas de changement du mot de passe
|
||||||
|
'confirmChangeQuestion' => "[LSformat]", // LSformat de la question de confirmation du changement du mot de passe
|
||||||
'mail' => array( // Configuration de l'envoi du mot de passe par mail
|
'mail' => array( // Configuration de l'envoi du mot de passe par mail
|
||||||
'subject' => "[LSformat du sujet du mail]",
|
'subject' => "[LSformat du sujet du mail]",
|
||||||
'msg' => "[LSformat du message du mail]",
|
'msg' => "[LSformat du message du mail]",
|
||||||
|
@ -140,6 +141,16 @@
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>confirmChangeQuestion</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>&LSformat; de la question posée à l'utilisateur en cas de changement
|
||||||
|
du mot de passe et si la fonctionnalité est activée. Il sera composé à l'aide
|
||||||
|
du <emphasis>label</emphasis> de l'attribut. <emphasis>Paramètre facultatif.
|
||||||
|
</emphasis></simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>clearView</term>
|
<term>clearView</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
|
|
|
@ -571,7 +571,9 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
|
||||||
'subject' => "LSexample : Your new credentials.",
|
'subject' => "LSexample : Your new credentials.",
|
||||||
'msg' => "Your password has been changed.\nLogin : %{uid}\nNew password : %{password}",
|
'msg' => "Your password has been changed.\nLogin : %{uid}\nNew password : %{password}",
|
||||||
'mail_attr' => 'mail'
|
'mail_attr' => 'mail'
|
||||||
)
|
),
|
||||||
|
'confirmChange' => True,
|
||||||
|
'confirmChangeQuestion' => "Do you confirm change of this user's password?",
|
||||||
),
|
),
|
||||||
'check_data' => array(
|
'check_data' => array(
|
||||||
'password' => array(
|
'password' => array(
|
||||||
|
|
|
@ -158,7 +158,7 @@ class LSformElement_password extends LSformElement {
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($params['confirmChange']) {
|
if ($params['confirmChange']) {
|
||||||
$params['confirmChangeQuestion'] = getFData(_('%{label}: Do you confirm the password change?'), $this -> label);
|
$params['confirmChangeQuestion'] = getFData(__($this -> getParam('html_options.confirmChangeQuestion', '%{label}: Do you confirm the password change?')), $this -> label);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this -> getParam('html_options.mail')) {
|
if ($this -> getParam('html_options.mail')) {
|
||||||
|
|
|
@ -570,6 +570,7 @@ function cli_generate_lang_file($command_args) {
|
||||||
case 'password':
|
case 'password':
|
||||||
addFromLSconfig("LSobjects.$obj.attrs.$attr.html_options.mail.subject");
|
addFromLSconfig("LSobjects.$obj.attrs.$attr.html_options.mail.subject");
|
||||||
addFromLSconfig("LSobjects.$obj.attrs.$attr.html_options.mail.msg");
|
addFromLSconfig("LSobjects.$obj.attrs.$attr.html_options.mail.msg");
|
||||||
|
addFromLSconfig("LSobjects.$obj.attrs.$attr.html_options.confirmChangeQuestion");
|
||||||
break;
|
break;
|
||||||
case 'select_list':
|
case 'select_list':
|
||||||
case 'select_box':
|
case 'select_box':
|
||||||
|
|
|
@ -45,6 +45,10 @@ $GLOBALS['LSlang'] = array (
|
||||||
"Description" =>
|
"Description" =>
|
||||||
"Description",
|
"Description",
|
||||||
|
|
||||||
|
# LSobjects.LSpeople.attrs.userPassword.html_options.confirmChangeQuestion
|
||||||
|
"Do you confirm change of this user's password?" =>
|
||||||
|
"Confirmez-vous le changement du mot de passe de cet utilisateur ?",
|
||||||
|
|
||||||
# LSobjects.LSpeople.LSrelation.groups.emptyText
|
# LSobjects.LSpeople.LSrelation.groups.emptyText
|
||||||
# LSobjects.LSsysaccount.LSrelation.groups.emptyText
|
# LSobjects.LSsysaccount.LSrelation.groups.emptyText
|
||||||
"Doesn't belong to any group." =>
|
"Doesn't belong to any group." =>
|
||||||
|
|
Loading…
Reference in a new issue