mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 04:54:12 +00:00
Update auths.py
changed Auths.insert_new_auth for LDAP accounts. Previously setting image to "None" was causing an error.
This commit is contained in:
parent
c13bcfdfc9
commit
b4cd685795
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user