mirror of
https://github.com/open-webui/open-webui
synced 2025-06-08 15:37:22 +00:00
fix: disable "enable new sign ups" not working issue
This commit is contained in:
parent
27baa00afb
commit
d0df2cbe53
@ -190,8 +190,8 @@ async def signin(request: Request, response: Response, form_data: SigninForm):
|
|||||||
async def signup(request: Request, response: Response, form_data: SignupForm):
|
async def signup(request: Request, response: Response, form_data: SignupForm):
|
||||||
if (
|
if (
|
||||||
not request.app.state.config.ENABLE_SIGNUP
|
not request.app.state.config.ENABLE_SIGNUP
|
||||||
and request.app.state.config.ENABLE_LOGIN_FORM
|
or not request.app.state.config.ENABLE_LOGIN_FORM
|
||||||
and WEBUI_AUTH
|
or not WEBUI_AUTH
|
||||||
):
|
):
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED
|
status.HTTP_403_FORBIDDEN, detail=ERROR_MESSAGES.ACCESS_PROHIBITED
|
||||||
|
Loading…
Reference in New Issue
Block a user