Pārlūkot izejas kodu

Update auths.py

Erik 3 nedēļas atpakaļ
vecāks
revīzija
c749083935
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      backend/open_webui/routers/auths.py

+ 2 - 0
backend/open_webui/routers/auths.py

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