Auth token not mandatory, can be provided in env var

This commit is contained in:
Cyber MacGeddon 2024-12-02 19:55:46 +00:00
parent 07580a788b
commit 94df3522a1
3 changed files with 4 additions and 4 deletions

View file

@ -47,7 +47,7 @@ class SocketEndpoint:
try:
token = request.query['token']
except:
return web.HTTPUnauthorized()
token = ""
if not self.auth.permitted(token, self.operation):
return web.HTTPUnauthorized()