mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
This commit is contained in:
parent
1c2991bc5b
commit
69f0b35ca6
2 changed files with 2 additions and 3 deletions
|
@ -57,7 +57,6 @@ $GLOBALS['LSconfig'] = array(
|
||||||
'authobject_pwdattr' => 'userPassword',
|
'authobject_pwdattr' => 'userPassword',
|
||||||
'recoverPassword' => array(
|
'recoverPassword' => array(
|
||||||
'mailAttr' => 'mail',
|
'mailAttr' => 'mail',
|
||||||
'passwordAttr' => 'userPassword',
|
|
||||||
'recoveryHashAttr' => 'lsRecoveryHash',
|
'recoveryHashAttr' => 'lsRecoveryHash',
|
||||||
'recoveryEmailSender' => 'noreply-recover@lsexample.net',
|
'recoveryEmailSender' => 'noreply-recover@lsexample.net',
|
||||||
'recoveryHashMail' => array(
|
'recoveryHashMail' => array(
|
||||||
|
|
|
@ -400,7 +400,7 @@ class LSsession {
|
||||||
}
|
}
|
||||||
// 2nd étape : génération du mot de passe + envoie par mail
|
// 2nd étape : génération du mot de passe + envoie par mail
|
||||||
else {
|
else {
|
||||||
$attr=$user -> attrs[$this -> ldapServer['recoverPassword']['passwordAttr']];
|
$attr=$user -> attrs[$this -> ldapServer['authobject_pwdattr']];
|
||||||
if ($attr instanceof LSattribute) {
|
if ($attr instanceof LSattribute) {
|
||||||
$mdp = generatePassword($attr -> config['html_options']['chars'],$attr -> config['html_options']['lenght']);
|
$mdp = generatePassword($attr -> config['html_options']['chars'],$attr -> config['html_options']['lenght']);
|
||||||
debug('Nvx mpd : '.$mdp);
|
debug('Nvx mpd : '.$mdp);
|
||||||
|
@ -408,7 +408,7 @@ class LSsession {
|
||||||
$lostPasswdForm -> setPostData(
|
$lostPasswdForm -> setPostData(
|
||||||
array(
|
array(
|
||||||
$this -> ldapServer['recoverPassword']['recoveryHashAttr'] => array(''),
|
$this -> ldapServer['recoverPassword']['recoveryHashAttr'] => array(''),
|
||||||
$this -> ldapServer['recoverPassword']['passwordAttr'] => array($mdp)
|
$this -> ldapServer['authobject_pwdattr'] => array($mdp)
|
||||||
)
|
)
|
||||||
,true
|
,true
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue