fix(web): make calculator available without login
This commit is contained in:
1 parent
111623994e
commit
f73f99068a
4 files changed
+3
-30
No files matched your search
+1
-1
@@ -194,7 +194,7 @@ class Handler(BaseHTTPRequestHandler):
|
||||
token = next((part.strip().split("=", 1)[1] for part in cookies.split(";") if part.strip().startswith("belki_session=")), "")
|
||||
_WEB_SESSIONS.discard(token)
|
||||
self._json_with_cookie(200, {"authenticated": False}, "belki_session=; Path=/; Max-Age=0; HttpOnly; SameSite=Lax")
|
||||
elif not self._web_authorized():
|
||||
elif self.path == "/api/applications" and not self._web_authorized():
|
||||
return
|
||||
elif self.path == "/api/web/upload":
|
||||
raw = str(payload.get("data", ""))
|
||||
|
||||
Reference in new issue
Block a user