Merge pull request #15677 from NicolasStr/patch-1
Fix #15676 Hide Password when importing from LDAP
This commit is contained in:
commit
9be184aa49
@ -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."=******* ";
|
||||||
}
|
} elseif ($value) {
|
||||||
|
$label .= $value."=".$ldapuser[$value]." ";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$liste[$key] = $label;
|
$liste[$key] = $label;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user