forked from indymedia/epicyon
Extra debug
parent
34f1ae730c
commit
64d824504e
|
@ -931,8 +931,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
return True
|
return True
|
||||||
if self.path.endswith('/'+nickname):
|
if self.path.endswith('/'+nickname):
|
||||||
return True
|
return True
|
||||||
print('AUTH: nickname '+nickname+' did not match')
|
print('AUTH: nickname '+nickname+' did not match '+str(self.server.tokensLookup[tokenStr]))
|
||||||
print('AUTH: epicyon cookie authorization failed')
|
print('AUTH: epicyon cookie authorization failed '+self.headers['Cookie'])
|
||||||
print('AUTH: Header cookie was not authorized')
|
print('AUTH: Header cookie was not authorized')
|
||||||
return False
|
return False
|
||||||
# basic auth
|
# basic auth
|
||||||
|
@ -941,7 +941,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.headers['Authorization'], \
|
self.headers['Authorization'], \
|
||||||
self.server.debug):
|
self.server.debug):
|
||||||
return True
|
return True
|
||||||
print('AUTH: Basic auth did not authorize')
|
print('AUTH: Basic auth did not authorize '+self.headers['Authorization'])
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _clearLoginDetails(self,nickname: str):
|
def _clearLoginDetails(self,nickname: str):
|
||||||
|
|
Loading…
Reference in New Issue