Check start session

This commit is contained in:
Guille Gutierrez 2024-06-23 07:39:11 +02:00
parent 55638fe147
commit 34779af69a

View File

@ -28,6 +28,7 @@ class SessionStart(Resource, Config):
except (ValueError, SQLAlchemyError, TypeError): except (ValueError, SQLAlchemyError, TypeError):
return Response(json.dumps({'error': 'unauthorized'}), status=403) return Response(json.dumps({'error': 'unauthorized'}), status=403)
ip = request.remote_addr ip = request.remote_addr
print(f'received valid login from {ip} {user_info}')
if user_info: if user_info:
session_id = str(uuid.uuid4()) session_id = str(uuid.uuid4())
token = str(uuid.uuid4()) token = str(uuid.uuid4())