mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Fix sync-ldap-users() bug, brought by: 666ff48837
This commit is contained in:
parent
6c628d7893
commit
74b058aa3f
@ -77,8 +77,8 @@ export function getLdapUser(owner, name) {
|
||||
}).then(res => res.json());
|
||||
}
|
||||
|
||||
export function syncUsers(owner, ldapId, body) {
|
||||
return fetch(`${Setting.ServerUrl}/api/sync-ldap-users?owner=${owner}&ldapId=${ldapId}`, {
|
||||
export function syncUsers(owner, name, body) {
|
||||
return fetch(`${Setting.ServerUrl}/api/sync-ldap-users?id=${owner}/${encodeURIComponent(name)}`, {
|
||||
method: "POST",
|
||||
credentials: "include",
|
||||
body: JSON.stringify(body),
|
||||
|
Loading…
x
Reference in New Issue
Block a user