update
This commit is contained in:
parent
a6f1c3fea5
commit
c5235e960d
2 changed files with 64 additions and 27 deletions
|
|
@ -903,7 +903,17 @@ export class KeycloakController extends Controller {
|
|||
});
|
||||
|
||||
for await (const _item of profiles) {
|
||||
const result = await changeUserPassword(_item.keycloak, "P@ssw0rd");
|
||||
let password = _item.citizenId;
|
||||
if (_item.birthDate != null) {
|
||||
const gregorianYear = _item.birthDate.getFullYear() + 543;
|
||||
|
||||
const formattedDate =
|
||||
_item.birthDate.toISOString().slice(8, 10) +
|
||||
_item.birthDate.toISOString().slice(5, 7) +
|
||||
gregorianYear;
|
||||
password = formattedDate;
|
||||
}
|
||||
const result = await changeUserPassword(_item.keycloak, password);
|
||||
if (!result) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue