add dpis controller
This commit is contained in:
parent
497decefe4
commit
4852131651
74 changed files with 606 additions and 336 deletions
|
|
@ -251,11 +251,7 @@ export async function updateName(
|
|||
*
|
||||
* @returns user uuid or true if success, false otherwise.
|
||||
*/
|
||||
export async function enableStatus(
|
||||
userId: string,
|
||||
status: boolean,
|
||||
) {
|
||||
|
||||
export async function enableStatus(userId: string, status: boolean) {
|
||||
const res = await fetch(`${KC_URL}/admin/realms/${KC_REALM}/users/${userId}`, {
|
||||
headers: {
|
||||
authorization: `Bearer ${await getToken()}`,
|
||||
|
|
@ -661,6 +657,4 @@ export async function removeUserGroup(userId: string, groupId: string) {
|
|||
}
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue