LSformElement::password: Add confirmChange parameter

This commit is contained in:
Benjamin Renard 2020-06-11 20:14:16 +02:00
parent 9c11a81220
commit 38ed2ca08c
7 changed files with 152 additions and 100 deletions

View file

@ -24,6 +24,7 @@
'pwgen_opts' => "[options à passer à pwgen]", 'pwgen_opts' => "[options à passer à pwgen]",
'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
'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]",
@ -129,6 +130,16 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term>confirmChange</term>
<listitem>
<simpara>Booléen définissant si l'utilisateur devra confirmer le changement de
ce mot de passe. Lorsque cette fonctionnalité est activée, l'utilisateur verra
apparaître une popup de confirmation à la validation du formulaire s'il a saisi
un nouveau mot de passe.</simpara>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term>clearView</term> <term>clearView</term>
<listitem> <listitem>

View file

@ -555,6 +555,7 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
'generationTool' => true, 'generationTool' => true,
'viewHash' => true, 'viewHash' => true,
'autoGenerate' => false, 'autoGenerate' => false,
'confirmChange' => true,
'lenght' => 8, 'lenght' => 8,
'chars' => array ( 'chars' => array (
array( array(

View file

@ -153,9 +153,14 @@ class LSformElement_password extends LSformElement {
'generate' => $this -> getParam('html_options.generationTool', true, 'bool'), 'generate' => $this -> getParam('html_options.generationTool', true, 'bool'),
'clearEdit' => $this -> getParam('html_options.clearEdit', false, 'bool'), 'clearEdit' => $this -> getParam('html_options.clearEdit', false, 'bool'),
'viewHash' => $this -> getParam('html_options.viewHash', false, 'bool'), 'viewHash' => $this -> getParam('html_options.viewHash', false, 'bool'),
'verify' => ( (!$this -> attr_html -> attribute -> ldapObject-> isNew()) && $this -> getParam('html_options.verify', True, 'bool') ) 'verify' => ( (!$this -> attr_html -> attribute -> ldapObject-> isNew()) && $this -> getParam('html_options.verify', True, 'bool') ),
'confirmChange' => (!$this -> attr_html -> attribute -> ldapObject-> isNew() && $this -> getParam('html_options.confirmChange', False, 'bool')),
); );
if ($params['confirmChange']) {
$params['confirmChangeQuestion'] = getFData(_('%{label}: Do you confirm the password change?'), $this -> label);
}
if ($this -> getParam('html_options.mail')) { if ($this -> getParam('html_options.mail')) {
$params['mail'] = $this -> getParam('html_options.mail'); $params['mail'] = $this -> getParam('html_options.mail');
$params['mail']['mail_attr'] = $this -> getMailAttrs(); $params['mail']['mail_attr'] = $this -> getMailAttrs();

View file

@ -88,6 +88,14 @@ var LSformElement_password_field = new Class({
} }
this.initialize_input(); this.initialize_input();
if (this.params['confirmChange']) {
varLSform.addEvent(
'submit',
this.onLSformSubmit.bind(this),
'LSformElement_password('+this.name+') :: confirmChange',
);
}
}, },
initialize_input: function() { initialize_input: function() {
@ -250,5 +258,24 @@ var LSformElement_password_field = new Class({
this.changeInputType('view'); this.changeInputType('view');
} }
} }
},
onLSformSubmit: function(form, on_confirm, on_cancel) {
// If no new password set, just confirm
if (!this.input.value) {
on_confirm();
return;
}
// Otherwise, ask user confirmation
this.confirmBox = new LSconfirmBox({
text: this.params.confirmChangeQuestion,
startElement: this.input,
onConfirm: on_confirm,
onCancel: (function(){
this.confirmBox=false;
on_cancel();
}).bind(this)
});
} }
}); });

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: LdapSaisie\n" "Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n" "POT-Creation-Date: \n"
"PO-Revision-Date: 2020-06-04 17:11+0200\n" "PO-Revision-Date: 2020-06-11 20:03+0200\n"
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n" "Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise." "Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n" "org>\n"
@ -619,11 +619,11 @@ msgstr ""
"Une erreur irrécupérable est survenue. Si le problème persiste, merci de " "Une erreur irrécupérable est survenue. Si le problème persiste, merci de "
"contacter le support." "contacter le support."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:629 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:657
msgid "LStemplate : Template %{file} not found." msgid "LStemplate : Template %{file} not found."
msgstr "LStemplate : le template %{file} est introuvable." msgstr "LStemplate : le template %{file} est introuvable."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:632 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:660
msgid "" msgid ""
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not " "LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
"callable." "callable."
@ -631,7 +631,7 @@ msgstr ""
"LStemplate : Échec d'exécution du déclencheur %{callable} lors de événement " "LStemplate : Échec d'exécution du déclencheur %{callable} lors de événement "
"%{event} : il n'est pas un callable." "%{event} : il n'est pas un callable."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:635 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:663
msgid "" msgid ""
"LStemplate : Error during the execution of the trigger %{callable} on event " "LStemplate : Error during the execution of the trigger %{callable} on event "
"%{event}." "%{event}."
@ -822,47 +822,47 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "Nettoyer" msgstr "Nettoyer"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1352 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1349
msgid "Connection" msgid "Connection"
msgstr "Connexion" msgstr "Connexion"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1374 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1371
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "Récupération de votre mot de passe" msgstr "Récupération de votre mot de passe"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1383 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1380
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
"Merci d'entrer votre identifiant pour poursuivre la procédure de récupération" "Merci d'entrer votre identifiant pour poursuivre la procédure de récupération"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1388 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1385
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
"Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les " "Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les "
"indications qu'il contient." "indications qu'il contient."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1397 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1394
msgid "Your new password has been sent to %{mail}." msgid "Your new password has been sent to %{mail}."
msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}." msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1566 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1563
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:146 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:146
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:423 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:423
#: templates/default/select.tpl:29 #: templates/default/select.tpl:29
msgid "Refresh" msgid "Refresh"
msgstr "Rafraîchir" msgstr "Rafraîchir"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2509 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2507
#: templates/default/select.tpl:20 templates/default/login.tpl:16 #: templates/default/select.tpl:20 templates/default/login.tpl:16
msgid "Level" msgid "Level"
msgstr "Niveau" msgstr "Niveau"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2662 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2660
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "LSsession : La constante %{const} n'est pas définie." msgstr "LSsession : La constante %{const} n'est pas définie."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2665 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2663
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
@ -870,52 +870,52 @@ msgstr ""
"LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du " "LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du "
"système et la configuration de l'add-on." "système et la configuration de l'add-on."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2668 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2666
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
"LSsession : Les données de configuration du serveur LDAP sont invalide. " "LSsession : Les données de configuration du serveur LDAP sont invalide. "
"Impossible de s'y connecter." "Impossible de s'y connecter."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2671 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2669
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
"LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu." "LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2674 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2672
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "LSsession : Impossible de charger la LSclass %{class}." msgstr "LSsession : Impossible de charger la LSclass %{class}."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2677 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2675
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "LSsession : Identifiant ou mot de passe incorrects." msgstr "LSsession : Identifiant ou mot de passe incorrects."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2680 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2678
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "LSsession : Impossible de vous identifier : Duplication d'identité." msgstr "LSsession : Impossible de vous identifier : Duplication d'identité."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2683 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2681
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
"LSsession : Impossible de charger la classe d'authentification (%{class})." "LSsession : Impossible de charger la classe d'authentification (%{class})."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2686 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2684
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "LSsession : Impossible de se connecter au serveur LDAP." msgstr "LSsession : Impossible de se connecter au serveur LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2689 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2687
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "LSsession : Impossible de vous identifier." msgstr "LSsession : Impossible de vous identifier."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2692 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2690
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action." msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2695 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2693
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "LSsession : Des informations sont manquant pour afficher cette page." msgstr "LSsession : Des informations sont manquant pour afficher cette page."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2698 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2696
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
@ -923,24 +923,24 @@ msgstr ""
"LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou " "LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou "
"n'est pas configurée." "n'est pas configurée."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2701 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2699
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
"LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur " "LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur "
"depuis LSauth." "depuis LSauth."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2704 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2702
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
"LSsession : Impossible de se reconnecter au serveur LDAP avec les " "LSsession : Impossible de se reconnecter au serveur LDAP avec les "
"identifiants de l'utilisateur." "identifiants de l'utilisateur."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2707 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2705
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet." msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2710 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2708
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
@ -948,13 +948,13 @@ msgstr ""
"LSsession : Erreur durant la création de la liste des niveaux. Contacter les " "LSsession : Erreur durant la création de la liste des niveaux. Contacter les "
"administrateurs. (Code : %{type})" "administrateurs. (Code : %{type})"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2713 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2711
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
"LSsession : La récupération de mot de passe est désactivée pour ce serveur " "LSsession : La récupération de mot de passe est désactivée pour ce serveur "
"LDAP." "LDAP."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2716 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2714
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
@ -962,7 +962,7 @@ msgstr ""
"LSsession : Des informations sont manques pour pouvoir récupérer votre mot " "LSsession : Des informations sont manques pour pouvoir récupérer votre mot "
"de passe. Contacter les administrateurs." "de passe. Contacter les administrateurs."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2719 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2717
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
@ -970,26 +970,26 @@ msgstr ""
"LSsession : Erreur durant la récupération de votre mot de passe. Contacter " "LSsession : Erreur durant la récupération de votre mot de passe. Contacter "
"les administrateurs. (Etape : %{step})" "les administrateurs. (Etape : %{step})"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2722 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2720
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
"LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}." "LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2725 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2723
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "LSsession : Problème durant l'initialisation." msgstr "LSsession : Problème durant l'initialisation."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2728 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2726
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
"LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas." "LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2731 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2729
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres." msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2734 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2732
msgid "" msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please " "LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it." "upgrade it."
@ -997,7 +997,7 @@ msgstr ""
"LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de " "LSsession : le LSaddon %{addon} utilise toujours l'ancien type d'URL de "
"vues. Merci de le mettre à jour." "vues. Merci de le mettre à jour."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2737 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2735
msgid "" msgid ""
"LSsession : You have been redirect from an old-style URL %{url}. Please " "LSsession : You have been redirect from an old-style URL %{url}. Please "
"upgrade this link." "upgrade this link."
@ -1005,7 +1005,7 @@ msgstr ""
"LSsession : Vous avez été redirigé depuis une ancienne URL %{url}. Merci de " "LSsession : Vous avez été redirigé depuis une ancienne URL %{url}. Merci de "
"le mettre à jour ce lien." "le mettre à jour ce lien."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2740 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2738
msgid "" msgid ""
"LSsession : You always seem to use %{old} in your custom code: Please " "LSsession : You always seem to use %{old} in your custom code: Please "
"upgrade it and use %{new}.<pre>\n" "upgrade it and use %{new}.<pre>\n"
@ -1449,31 +1449,35 @@ msgstr ""
msgid "Modify the mail sent to notice the user" msgid "Modify the mail sent to notice the user"
msgstr "Modifier mail de notification de l'utilisateur" msgstr "Modifier mail de notification de l'utilisateur"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:273 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:161
msgid "%{label}: Do you confirm the password change?"
msgstr "%{label} : Confirmez-vous le changement de ce mot de passe ?"
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:278
msgid "Notice mail sent." msgid "Notice mail sent."
msgstr "Le mail de notification a été envoyé." msgstr "Le mail de notification a été envoyé."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:350 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:355
msgid "LSformElement_password : No contact mail available to send password." msgid "LSformElement_password : No contact mail available to send password."
msgstr "" msgstr ""
"LSformElement_password : Aucun mail de contact disponible pour envoyer le " "LSformElement_password : Aucun mail de contact disponible pour envoyer le "
"mot de passe." "mot de passe."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:353 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:358
msgid "" msgid ""
"LSformElement_password : Contact mail invalid (%{mail}). Can't send password." "LSformElement_password : Contact mail invalid (%{mail}). Can't send password."
msgstr "" msgstr ""
"LSformElement_password : Mail de contact invalide (%{mail}). Impossible " "LSformElement_password : Mail de contact invalide (%{mail}). Impossible "
"d'envoyer le mot de passe." "d'envoyer le mot de passe."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:356 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:361
msgid "" msgid ""
"LSformElement_password : Fail to exec pwgen. Check it's correctly installed." "LSformElement_password : Fail to exec pwgen. Check it's correctly installed."
msgstr "" msgstr ""
"LSformElement_password : Impossible d'exécuter pwgen. Vérifier qu'il est " "LSformElement_password : Impossible d'exécuter pwgen. Vérifier qu'il est "
"bien installé." "bien installé."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:359 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:364
msgid "" msgid ""
"LSformElement_password : Fail to determine witch e-mail attribute to use to " "LSformElement_password : Fail to determine witch e-mail attribute to use to "
"send new password : get_mail_attr_function parameter not refer to a valid " "send new password : get_mail_attr_function parameter not refer to a valid "
@ -1483,7 +1487,7 @@ msgstr ""
"être utilisé pour l'envoi du mot de passe : le paramètre " "être utilisé pour l'envoi du mot de passe : le paramètre "
"get_mail_attr_function ne fait pas référence à une fonction valide." "get_mail_attr_function ne fait pas référence à une fonction valide."
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:362 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:367
msgid "" msgid ""
"LSformElement_password : Fail to determine witch e-mail attribute to use to " "LSformElement_password : Fail to determine witch e-mail attribute to use to "
"send new password : get_mail_attr_function throwed an exception : %{msg}" "send new password : get_mail_attr_function throwed an exception : %{msg}"

View file

@ -524,17 +524,17 @@ msgstr ""
msgid "A fatal error occured. If problem persist, please contact support." msgid "A fatal error occured. If problem persist, please contact support."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:629 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:657
msgid "LStemplate : Template %{file} not found." msgid "LStemplate : Template %{file} not found."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:632 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:660
msgid "" msgid ""
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not " "LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
"callable." "callable."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:635 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:663
msgid "" msgid ""
"LStemplate : Error during the execution of the trigger %{callable} on event " "LStemplate : Error during the execution of the trigger %{callable} on event "
"%{event}." "%{event}."
@ -682,161 +682,161 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1352 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1349
msgid "Connection" msgid "Connection"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1374 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1371
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1383 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1380
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1388 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1385
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1397 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1394
msgid "Your new password has been sent to %{mail}." msgid "Your new password has been sent to %{mail}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1566 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:1563
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:146 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:146
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:423 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/routes.php:423
#: templates/default/select.tpl:29 #: templates/default/select.tpl:29
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2509 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2507
#: templates/default/select.tpl:20 templates/default/login.tpl:16 #: templates/default/select.tpl:20 templates/default/login.tpl:16
msgid "Level" msgid "Level"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2662 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2660
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2665 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2663
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2668 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2666
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2671 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2669
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2674 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2672
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2677 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2675
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2680 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2678
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2683 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2681
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2686 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2684
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2689 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2687
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2692 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2690
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2695 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2693
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2698 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2696
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2701 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2699
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2704 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2702
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2707 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2705
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2710 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2708
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2713 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2711
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2716 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2714
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2719 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2717
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2722 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2720
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2725 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2723
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2728 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2726
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2731 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2729
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2734 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2732
msgid "" msgid ""
"LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please " "LSsession : the LSaddon %{addon} keep using old-style addon view URL. Please "
"upgrade it." "upgrade it."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2737 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2735
msgid "" msgid ""
"LSsession : You have been redirect from an old-style URL %{url}. Please " "LSsession : You have been redirect from an old-style URL %{url}. Please "
"upgrade this link." "upgrade this link."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2740 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSsession.php:2738
msgid "" msgid ""
"LSsession : You always seem to use %{old} in your custom code: Please " "LSsession : You always seem to use %{old} in your custom code: Please "
"upgrade it and use %{new}.<pre>\n" "upgrade it and use %{new}.<pre>\n"
@ -1198,32 +1198,36 @@ msgstr ""
msgid "Modify the mail sent to notice the user" msgid "Modify the mail sent to notice the user"
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:273 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:161
msgid "%{label}: Do you confirm the password change?"
msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:278
msgid "Notice mail sent." msgid "Notice mail sent."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:350 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:355
msgid "LSformElement_password : No contact mail available to send password." msgid "LSformElement_password : No contact mail available to send password."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:353 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:358
msgid "" msgid ""
"LSformElement_password : Contact mail invalid (%{mail}). Can't send password." "LSformElement_password : Contact mail invalid (%{mail}). Can't send password."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:356 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:361
msgid "" msgid ""
"LSformElement_password : Fail to exec pwgen. Check it's correctly installed." "LSformElement_password : Fail to exec pwgen. Check it's correctly installed."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:359 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:364
msgid "" msgid ""
"LSformElement_password : Fail to determine witch e-mail attribute to use to " "LSformElement_password : Fail to determine witch e-mail attribute to use to "
"send new password : get_mail_attr_function parameter not refer to a valid " "send new password : get_mail_attr_function parameter not refer to a valid "
"function." "function."
msgstr "" msgstr ""
#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:362 #: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LSformElement_password.php:367
msgid "" msgid ""
"LSformElement_password : Fail to determine witch e-mail attribute to use to " "LSformElement_password : Fail to determine witch e-mail attribute to use to "
"send new password : get_mail_attr_function throwed an exception : %{msg}" "send new password : get_mail_attr_function throwed an exception : %{msg}"