This commit is contained in:
Benjamin Renard 2008-06-05 13:53:37 +00:00
parent 1c2991bc5b
commit 69f0b35ca6
2 changed files with 2 additions and 3 deletions

View file

@ -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(

View file

@ -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
);