From 34779af69a69074f4296dafb5d6d25c98ee4b0ef Mon Sep 17 00:00:00 2001 From: Guille Date: Sun, 23 Jun 2024 07:39:11 +0200 Subject: [PATCH] Check start session --- hub_api/control/session.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hub_api/control/session.py b/hub_api/control/session.py index 3a1f37e..d59a449 100644 --- a/hub_api/control/session.py +++ b/hub_api/control/session.py @@ -28,6 +28,7 @@ class SessionStart(Resource, Config): except (ValueError, SQLAlchemyError, TypeError): return Response(json.dumps({'error': 'unauthorized'}), status=403) ip = request.remote_addr + print(f'received valid login from {ip} {user_info}') if user_info: session_id = str(uuid.uuid4()) token = str(uuid.uuid4())