From b4c974c001e5131c37573da8dbeecf6ed6964dea Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Tue, 11 Jan 2022 13:42:32 +0100 Subject: [PATCH] refactor!: remove verify mail, default action on keycloak now --- members_lumbung_space/routes/register.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/members_lumbung_space/routes/register.py b/members_lumbung_space/routes/register.py index fa4b3d9..b4659cd 100644 --- a/members_lumbung_space/routes/register.py +++ b/members_lumbung_space/routes/register.py @@ -107,10 +107,7 @@ def form_keycloak_register( } try: - user_id = request.app.state.keycloak.create_user( - payload, exist_ok=False - ) - request.app.state.keycloak.send_verify_email(user_id=user_id) + request.app.state.keycloak.create_user(payload, exist_ok=False) except Exception as exception: request.app.state.log.error( f"Keycloak user registration failed, saw: {exception}"