mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
Update auths.py
This commit is contained in:
parent
70718dda90
commit
c749083935
@ -237,6 +237,8 @@ async def ldap_auth(request: Request, response: Response, form_data: LdapForm):
|
|||||||
email = email.lower()
|
email = email.lower()
|
||||||
elif isinstance(email, list):
|
elif isinstance(email, list):
|
||||||
email = email[0].lower()
|
email = email[0].lower()
|
||||||
|
else:
|
||||||
|
email = str(email).lower()
|
||||||
|
|
||||||
cn = str(entry["cn"])
|
cn = str(entry["cn"])
|
||||||
user_dn = entry.entry_dn
|
user_dn = entry.entry_dn
|
||||||
|
Loading…
Reference in New Issue
Block a user