Update auths.py

This commit is contained in:
Erik authored and GitHub committed 2025-04-14 08:12:37 +02:00
1 parent 70718dda90
commit c749083935
1 file changed
+2
+2
View File
@@ -237,6 +237,8 @@ async def ldap_auth(request: Request, response: Response, form_data: LdapForm):
email = email.lower()
elif isinstance(email, list):
email = email[0].lower()
else:
email = str(email).lower()
cn = str(entry["cn"])
user_dn = entry.entry_dn