From 05f9e527e9eea7303289ed42051a50991bce73d9 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 2 Aug 2022 13:41:46 +0530 Subject: [PATCH] Island: Remove unnecessary error in Authenticate POST --- monkey/monkey_island/cc/resources/auth/authenticate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/auth/authenticate.py b/monkey/monkey_island/cc/resources/auth/authenticate.py index d9513bae8..a4b4468ec 100644 --- a/monkey/monkey_island/cc/resources/auth/authenticate.py +++ b/monkey/monkey_island/cc/resources/auth/authenticate.py @@ -50,5 +50,4 @@ class Authenticate(AbstractResource): except IncorrectCredentialsError: return make_response({"error": "Invalid credentials"}, HTTPStatus.UNAUTHORIZED) - # API Spec: Why are we sending "error" here? - return make_response({"access_token": access_token, "error": ""}, HTTPStatus.OK) + return make_response({"access_token": access_token}, HTTPStatus.OK)