Fix user
This commit is contained in:
parent
ed3a4de438
commit
925f240340
@ -1446,8 +1446,10 @@ if ($action == 'create' || $action == 'adduserldap')
|
|||||||
}
|
}
|
||||||
if (preg_match('/dolibarr/', $dolibarr_main_authentication))
|
if (preg_match('/dolibarr/', $dolibarr_main_authentication))
|
||||||
{
|
{
|
||||||
if ($object->pass) $valuetoshow .= ($valuetoshow ? (' '.$langs->trans("or").' ') : '').preg_replace('/./i', '*', $object->pass);
|
if ($object->pass) {
|
||||||
else {
|
$valuetoshow .= ($valuetoshow ? (' '.$langs->trans("or").' ') : '');
|
||||||
|
$valuetoshow .= '<span class="opacitymedium">'.$langs->trans("Hidden").'</span>';
|
||||||
|
} else {
|
||||||
if ($user->admin && $user->id == $object->id) {
|
if ($user->admin && $user->id == $object->id) {
|
||||||
$valuetoshow .= ($valuetoshow ? (' '.$langs->trans("or").' ') : '');
|
$valuetoshow .= ($valuetoshow ? (' '.$langs->trans("or").' ') : '');
|
||||||
//$valuetoshow .= '<span class="opacitymedium">'.$langs->trans("Crypted").' - </span>';
|
//$valuetoshow .= '<span class="opacitymedium">'.$langs->trans("Crypted").' - </span>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user