From b4cd685795d7c97b7bdd412d1e0fe41010159a73 Mon Sep 17 00:00:00 2001 From: iamcristi Date: Fri, 22 Nov 2024 17:23:49 +0200 Subject: [PATCH] Update auths.py changed Auths.insert_new_auth for LDAP accounts. Previously setting image to "None" was causing an error. --- backend/open_webui/apps/webui/routers/auths.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/open_webui/apps/webui/routers/auths.py b/backend/open_webui/apps/webui/routers/auths.py index 9c0a6e452..5d2e257df 100644 --- a/backend/open_webui/apps/webui/routers/auths.py +++ b/backend/open_webui/apps/webui/routers/auths.py @@ -246,13 +246,13 @@ async def ldap_auth(request: Request, response: Response, form_data: LdapForm): ) user = Auths.insert_new_auth( - mail, - str(uuid.uuid4()), - cn, - None, - role, + email=mail, + password=str(uuid.uuid4()), + name=cn, + role=role ) + if not user: raise HTTPException( 500, detail=ERROR_MESSAGES.CREATE_USER_ERROR