Timothy Jaeryang Baek 1 mese fa
parent
commit
4485c7a5d2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      backend/open_webui/utils/auth.py

+ 1 - 1
backend/open_webui/utils/auth.py

@@ -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-"):