浏览代码

Update auths.py

Erik 1 月之前
父节点
当前提交
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