bugfix
This commit is contained in:
parent
e62fd1548d
commit
2f098db149
@ -105,7 +105,7 @@ class AuthAPI(AppLogger):
|
|||||||
client_uuid = request.headers.get('client_uuid')
|
client_uuid = request.headers.get('client_uuid')
|
||||||
ip = self._get_ip(request)
|
ip = self._get_ip(request)
|
||||||
valid_until = int(time.time()) + self._max_age
|
valid_until = int(time.time()) + self._max_age
|
||||||
# print(f'hack: my _new_ticket() called ...remote {ip=}, {client_uuid=}')
|
# print(f'hack: my _new_ticket() called ... remote {ip=}, {client_uuid=}')
|
||||||
return self._ticket.new(user_id,
|
return self._ticket.new(user_id,
|
||||||
valid_until=valid_until,
|
valid_until=valid_until,
|
||||||
client_ip=ip,
|
client_ip=ip,
|
||||||
@ -125,7 +125,7 @@ class AuthAPI(AppLogger):
|
|||||||
|
|
||||||
@web.middleware
|
@web.middleware
|
||||||
async def checkAuth(self,request,handler):
|
async def checkAuth(self,request,handler):
|
||||||
self.info(f'checkAuth() called ...{request.path}')
|
self.info(f'checkAuth() called ... {request.path=}')
|
||||||
t1 = time.time()
|
t1 = time.time()
|
||||||
path = request.path
|
path = request.path
|
||||||
user = await auth.get_auth(request)
|
user = await auth.get_auth(request)
|
||||||
|
Loading…
Reference in New Issue
Block a user