mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
enh: remove token cookie on signout
This commit is contained in:
@@ -323,6 +323,12 @@ async def signup(request: Request, response: Response, form_data: SignupForm):
|
||||
raise HTTPException(500, detail=ERROR_MESSAGES.DEFAULT(err))
|
||||
|
||||
|
||||
@router.get("/signout")
|
||||
async def signout(response: Response):
|
||||
response.delete_cookie("token")
|
||||
return {"status": True}
|
||||
|
||||
|
||||
############################
|
||||
# AddUser
|
||||
############################
|
||||
|
||||
Reference in New Issue
Block a user