Merge pull request #15677 from NicolasStr/patch-1

Fix #15676 Hide Password when importing from LDAP
This commit is contained in:
Laurent Destailleur 2020-12-07 22:33:42 +01:00 committed by GitHub
commit 9be184aa49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -737,10 +737,12 @@ if ($action == 'create' || $action == 'adduserldap')
$label = '';
foreach ($required_fields as $value)
{
if ($value)
{
$label .= $value."=".$ldapuser[$value]." ";
}
if ($value === $conf->global->LDAP_FIELD_PASSWORD || $value === $conf->global->LDAP_FIELD_PASSWORD_CRYPTED)
{
$label .= $value."=******* ";
} elseif ($value) {
$label .= $value."=".$ldapuser[$value]." ";
}
}
$liste[$key] = $label;
}