Fix #15676 Hide Password when importing from LDAP

Refers to Issue #15676
This commit is contained in:
Nicolas Streng 2020-12-05 21:10:57 +01:00 committed by GitHub
parent 6c2d520e21
commit f6eb10f6e5
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."=******* ";
} else if ($value) {
$label .= $value."=".$ldapuser[$value]." ";
}
}
$liste[$key] = $label;
}