소스 검색

Update auths.py

Erik 3 주 전
부모
커밋
c749083935
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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()
         elif isinstance(email, list):
             email = email[0].lower()
+        else:
+            email = str(email).lower()
 
         cn = str(entry["cn"])
         user_dn = entry.entry_dn