mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +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',
|
||||
'recoverPassword' => array(
|
||||
'mailAttr' => 'mail',
|
||||
'passwordAttr' => 'userPassword',
|
||||
'recoveryHashAttr' => 'lsRecoveryHash',
|
||||
'recoveryEmailSender' => 'noreply-recover@lsexample.net',
|
||||
'recoveryHashMail' => array(
|
||||
|
|
|
@ -400,7 +400,7 @@ class LSsession {
|
|||
}
|
||||
// 2nd étape : génération du mot de passe + envoie par mail
|
||||
else {
|
||||
$attr=$user -> attrs[$this -> ldapServer['recoverPassword']['passwordAttr']];
|
||||
$attr=$user -> attrs[$this -> ldapServer['authobject_pwdattr']];
|
||||
if ($attr instanceof LSattribute) {
|
||||
$mdp = generatePassword($attr -> config['html_options']['chars'],$attr -> config['html_options']['lenght']);
|
||||
debug('Nvx mpd : '.$mdp);
|
||||
|
@ -408,7 +408,7 @@ class LSsession {
|
|||
$lostPasswdForm -> setPostData(
|
||||
array(
|
||||
$this -> ldapServer['recoverPassword']['recoveryHashAttr'] => array(''),
|
||||
$this -> ldapServer['recoverPassword']['passwordAttr'] => array($mdp)
|
||||
$this -> ldapServer['authobject_pwdattr'] => array($mdp)
|
||||
)
|
||||
,true
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue