- LSsession : N'affiche le recoverPassword que si celui-ci est activé

This commit is contained in:
Benjamin Renard 2008-10-09 16:15:26 +00:00
parent ff1a020630
commit 9952e7e8ba

View file

@ -735,7 +735,9 @@ class LSsession {
$GLOBALS['Smarty'] -> assign('loginform_label_user',_('Identifiant')); $GLOBALS['Smarty'] -> assign('loginform_label_user',_('Identifiant'));
$GLOBALS['Smarty'] -> assign('loginform_label_pwd',_('Mot de passe')); $GLOBALS['Smarty'] -> assign('loginform_label_pwd',_('Mot de passe'));
$GLOBALS['Smarty'] -> assign('loginform_label_submit',_('Connexion')); $GLOBALS['Smarty'] -> assign('loginform_label_submit',_('Connexion'));
if (isset($GLOBALS['LSconfig']['ldap_servers'][0])) {
$GLOBALS['Smarty'] -> assign('loginform_label_lostpassword',_('Mot de passe oublié ?')); $GLOBALS['Smarty'] -> assign('loginform_label_lostpassword',_('Mot de passe oublié ?'));
}
$this -> setTemplate('login.tpl'); $this -> setTemplate('login.tpl');
$this -> addJSscript('LSsession_login.js'); $this -> addJSscript('LSsession_login.js');