mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 23:05:20 +00:00
Merge pull request #7233 from iamcristi/patch-1
Fix: LDAP integration used None for image and that broke Authentication
This commit is contained in:
commit
335337fc75
1 changed files with 5 additions and 5 deletions
|
|
@ -246,13 +246,13 @@ async def ldap_auth(request: Request, response: Response, form_data: LdapForm):
|
||||||
)
|
)
|
||||||
|
|
||||||
user = Auths.insert_new_auth(
|
user = Auths.insert_new_auth(
|
||||||
mail,
|
email=mail,
|
||||||
str(uuid.uuid4()),
|
password=str(uuid.uuid4()),
|
||||||
cn,
|
name=cn,
|
||||||
None,
|
role=role
|
||||||
role,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if not user:
|
if not user:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
500, detail=ERROR_MESSAGES.CREATE_USER_ERROR
|
500, detail=ERROR_MESSAGES.CREATE_USER_ERROR
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue