forked from indymedia/epicyon
Checking cookie
parent
690b40eea0
commit
2f5c061168
|
@ -778,7 +778,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
def _isAuthorized(self) -> bool:
|
||||
# token based authenticated used by the web interface
|
||||
if self.headers.get('Cookie'):
|
||||
if '=' in self.headers['Cookie']:
|
||||
if self.headers['Cookie'].startswith('epicyon='):
|
||||
tokenStr=self.headers['Cookie'].split('=',1)[1]
|
||||
if self.server.tokensLookup.get(tokenStr):
|
||||
nickname=self.server.tokensLookup[tokenStr]
|
||||
|
|
Loading…
Reference in New Issue