Check start session
This commit is contained in:
parent
55638fe147
commit
34779af69a
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user