Scu: Le mot de passe ne doit pas apparaitre meme crypt sauf pour admin qui peut apparaitre crypt.

This commit is contained in:
Laurent Destailleur 2007-04-26 00:32:08 +00:00
parent 410733b0a5
commit 02171d7a0b
2 changed files with 3 additions and 18 deletions

View File

@ -837,7 +837,7 @@ else
if ($fuser->pass) print eregi_replace('.','*',$fuser->pass);
else
{
if ($user->admin) print $langs->trans("Crypted").': '.$fuser->pass_indatabase;
if ($user->admin) print $langs->trans("Crypted").': '.$fuser->pass_indatabase_crypted;
else print $langs->trans("Hidden");
}
print "</td>";

View File

@ -144,22 +144,6 @@ if ($conf->global->LDAP_SERVER_TYPE == "activedirectory")
print "</tr>\n";
}
// Password not crypted
if ($conf->global->LDAP_FIELD_PASSWORD)
{
print '<tr><td width="25%" valign="top">'.$langs->trans("LDAPFieldPasswordNotCrypted").'</td>';
print '<td>'.$fuser->pass.'</td>';
print "</tr>\n";
}
// Password crypted
if ($conf->global->LDAP_FIELD_PASSWORD_CRYPTED)
{
print '<tr><td width="25%" valign="top">'.$langs->trans("LDAPFieldPasswordCrypted").'</td>';
print '<td>'.$fuser->pass_crypted.'</td>';
print "</tr>\n";
}
// LDAP DN
print '<tr><td>LDAP '.$langs->trans("LDAPUserDn").'</td><td class="valeur">'.$conf->global->LDAP_USER_DN."</td></tr>\n";
@ -193,7 +177,8 @@ if ($conf->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap')
}
print "</div>\n";
print "<br>\n";
if ($conf->global->LDAP_SYNCHRO_ACTIVE == 'dolibarr2ldap') print "<br>\n";