|
@@ -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,
|
|
|
|
- str(uuid.uuid4()),
|
|
|
|
- cn,
|
|
|
|
- None,
|
|
|
|
- role,
|
|
|
|
|
|
+ email=mail,
|
|
|
|
+ password=str(uuid.uuid4()),
|
|
|
|
+ name=cn,
|
|
|
|
+ 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
|