mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
LDAP: fix LDAP test with special chars in username (#26539)
This commit is contained in:
parent
1ba95183f6
commit
2e931a0ee1
@ -211,7 +211,7 @@ export function loadLdapState(): ThunkResult<void> {
|
||||
export function loadUserMapping(username: string): ThunkResult<void> {
|
||||
return async dispatch => {
|
||||
try {
|
||||
const response = await getBackendSrv().get(`/api/admin/ldap/${username}`);
|
||||
const response = await getBackendSrv().get(`/api/admin/ldap/${encodeURIComponent(username)}`);
|
||||
const { name, surname, email, login, isGrafanaAdmin, isDisabled, roles, teams } = response;
|
||||
const userInfo: LdapUser = {
|
||||
info: { name, surname, email, login },
|
||||
|
Loading…
Reference in New Issue
Block a user