reintroduce security

This commit is contained in:
Guille Gutierrez 2024-05-09 15:55:45 +02:00
parent b49e70c0d2
commit 7a5fa1f09b

View File

@ -71,7 +71,6 @@ class InselMonthlyEnergyBalance(Resource, Config):
token = request.headers.get('token', None) token = request.headers.get('token', None)
application_uuid = request.headers.get('application-uuid', None) application_uuid = request.headers.get('application-uuid', None)
_session = refresh_session(session_id, token, application_uuid) _session = refresh_session(session_id, token, application_uuid)
_session = {'token': token}
if _session is None: if _session is None:
return Response(json.dumps({'error': 'unauthorized'}), status=403) return Response(json.dumps({'error': 'unauthorized'}), status=403)
else: else: