(no commit message)
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 5 Jun 2008 13:53:37 +0000 (13:53 +0000)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 5 Jun 2008 13:53:37 +0000 (13:53 +0000)
trunk/conf/config.inc.php
trunk/includes/class/class.LSsession.php

index db23147..9dc795e 100644 (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(
index adfcc3e..726d112 100644 (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
                           );