Enable a more safe mode of creation
This commit is contained in:
parent
d05d812189
commit
c12ee79458
@ -61,8 +61,13 @@ for email in emails:
|
||||
"requiredActions": ["UPDATE_PASSWORD", "UPDATE_PROFILE"],
|
||||
}
|
||||
|
||||
print(f"payload: {payload}")
|
||||
if not confirm():
|
||||
print("Bailing out on request...")
|
||||
exit(1)
|
||||
|
||||
try:
|
||||
user_id = keycloak.create_user(payload, exist_ok=False)
|
||||
user_id = keycloak.create_user(payload, exist_ok=True)
|
||||
print(f"Account created for {email}")
|
||||
keycloak.send_verify_email(user_id=user_id)
|
||||
print(f"Verification mail sent to {email}")
|
||||
|
Loading…
Reference in New Issue
Block a user