From a1f969f78a1b04e5b012d859a0ebe2f9c7d5a886 Mon Sep 17 00:00:00 2001 From: Q Misell Date: Wed, 26 Feb 2025 14:19:04 +0100 Subject: [PATCH] commit new oauth user --- irrd/webui/auth/endpoints.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/irrd/webui/auth/endpoints.py b/irrd/webui/auth/endpoints.py index a2e3215..1dc75f8 100644 --- a/irrd/webui/auth/endpoints.py +++ b/irrd/webui/auth/endpoints.py @@ -387,11 +387,10 @@ async def oauth_callback(request: Request): password=secrets.token_hex(24), ) session_provider.session.add(user) - session_provider.session.commit() await login_user(request, user, oic.rndstr()) - session_provider.close() + session_provider.commit_close() request.session[MFA_COMPLETE_SESSION_KEY] = True return RedirectResponse(next_url, status_code=302)