Fix #15676 Hide Password when importing from LDAP
Refers to Issue #15676
This commit is contained in:
parent
6c2d520e21
commit
f6eb10f6e5
@ -737,10 +737,12 @@ if ($action == 'create' || $action == 'adduserldap')
|
|||||||
$label = '';
|
$label = '';
|
||||||
foreach ($required_fields as $value)
|
foreach ($required_fields as $value)
|
||||||
{
|
{
|
||||||
if ($value)
|
if ($value === $conf->global->LDAP_FIELD_PASSWORD || $value === $conf->global->LDAP_FIELD_PASSWORD_CRYPTED)
|
||||||
{
|
{
|
||||||
$label .= $value."=".$ldapuser[$value]." ";
|
$label .= $value."=******* ";
|
||||||
}
|
} else if ($value) {
|
||||||
|
$label .= $value."=".$ldapuser[$value]." ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$liste[$key] = $label;
|
$liste[$key] = $label;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user