mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
caf8482fba
commit
4485c7a5d2
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ def get_current_user(
|
|||
token = request.cookies.get("token")
|
||||
|
||||
if token is None:
|
||||
raise HTTPException(status_code=403, detail="Not authenticated")
|
||||
raise HTTPException(status_code=401, detail="Not authenticated")
|
||||
|
||||
# auth by api key
|
||||
if token.startswith("sk-"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue