Merge pull request #7233 from iamcristi/patch-1

Fix: LDAP integration used None for image and that broke Authentication
This commit is contained in:
Timothy Jaeryang Baek 2024-11-22 10:42:49 -08:00 committed by GitHub
commit 335337fc75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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