fix: user email not save in keycloak
This commit is contained in:
parent
5e33da1862
commit
a26188cbb3
1 changed files with 6 additions and 1 deletions
|
|
@ -385,6 +385,7 @@ export class UserController extends Controller {
|
||||||
const userId = await createUser(username, username, {
|
const userId = await createUser(username, username, {
|
||||||
firstName: body.firstName,
|
firstName: body.firstName,
|
||||||
lastName: body.lastName,
|
lastName: body.lastName,
|
||||||
|
email: body.email,
|
||||||
requiredActions: ["UPDATE_PASSWORD"],
|
requiredActions: ["UPDATE_PASSWORD"],
|
||||||
enabled: rest.status !== "INACTIVE",
|
enabled: rest.status !== "INACTIVE",
|
||||||
});
|
});
|
||||||
|
|
@ -553,7 +554,11 @@ export class UserController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (body.username) {
|
if (body.username) {
|
||||||
await editUser(userId, { username: body.username, enabled: body.status !== "INACTIVE" });
|
await editUser(userId, {
|
||||||
|
username: body.username,
|
||||||
|
email: body.email,
|
||||||
|
enabled: body.status !== "INACTIVE",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const { provinceId, districtId, subDistrictId, branchId, ...rest } = body;
|
const { provinceId, districtId, subDistrictId, branchId, ...rest } = body;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue