From d0df2cbe53e5a00a422c10cb4b6830aed4eb94e1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 14 Sep 2024 23:13:52 +0100 Subject: [PATCH] fix: disable "enable new sign ups" not working issue --- backend/open_webui/apps/webui/routers/auths.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/apps/webui/routers/auths.py b/backend/open_webui/apps/webui/routers/auths.py index 2366841e1..bfa460836 100644 --- a/backend/open_webui/apps/webui/routers/auths.py +++ b/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