Skip to content

Commit

Permalink
commit new oauth user
Browse files Browse the repository at this point in the history
  • Loading branch information
q committed Feb 26, 2025
1 parent e8f9ecf commit a1f969f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions irrd/webui/auth/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit a1f969f

Please sign in to comment.