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:
iamcristi 2024-11-22 17:23:49 +02:00 committed by GitHub
parent c13bcfdfc9
commit b4cd685795
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( 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