Przeglądaj źródła

fix: disable "enable new sign ups" not working issue

Timothy J. Baek 7 miesięcy temu
rodzic
commit
d0df2cbe53
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      backend/open_webui/apps/webui/routers/auths.py

+ 2 - 2
backend/open_webui/apps/webui/routers/auths.py

@@ -190,8 +190,8 @@ async def signin(request: Request, response: Response, form_data: SigninForm):
 async def signup(request: Request, response: Response, form_data: SignupForm):
     if (
         not request.app.state.config.ENABLE_SIGNUP
-        and request.app.state.config.ENABLE_LOGIN_FORM
-        and WEBUI_AUTH
+        or not request.app.state.config.ENABLE_LOGIN_FORM
+        or not WEBUI_AUTH
     ):
         raise HTTPException(
             status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED