reset password (test)
This commit is contained in:
parent
25aeef2448
commit
0be55a03a9
1 changed files with 4 additions and 4 deletions
|
|
@ -790,8 +790,8 @@ export async function resetPassword(username: string) {
|
|||
|
||||
const users = await fetch(`${KC_URL}/admin/realms/${KC_REALMS}/users?email=${encodeURIComponent(username)}`, {
|
||||
headers: {
|
||||
// "authorization": `Bearer ${await getToken()}`,
|
||||
"authorization": `Bearer ${adminToken}`,
|
||||
"authorization": `Bearer ${await getToken()}`,
|
||||
// "authorization": `Bearer ${adminToken}`,
|
||||
"content-type": `application/json`,
|
||||
},
|
||||
});
|
||||
|
|
@ -803,8 +803,8 @@ export async function resetPassword(username: string) {
|
|||
const resetResponse = await fetch(`${KC_URL}/admin/realms/${KC_REALMS}/users/${userId}/execute-actions-email`, {
|
||||
method: "PUT",
|
||||
headers: {
|
||||
// "Authorization": `Bearer ${await getToken()}`,
|
||||
"Authorization": `Bearer ${adminToken}`,
|
||||
"Authorization": `Bearer ${await getToken()}`,
|
||||
// "Authorization": `Bearer ${adminToken}`,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify(["UPDATE_PASSWORD"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue