diff --git a/monkey/monkey_island/cc/resources/credentials/configured_propagation_credentials.py b/monkey/monkey_island/cc/resources/credentials/configured_propagation_credentials.py index dad2592c6..fcb6839b3 100644 --- a/monkey/monkey_island/cc/resources/credentials/configured_propagation_credentials.py +++ b/monkey/monkey_island/cc/resources/credentials/configured_propagation_credentials.py @@ -21,6 +21,8 @@ class ConfiguredPropagationCredentials(AbstractResource): def post(self): credentials = Credentials.from_mapping(request.json) self._credentials_repository.save_configured_credentials(credentials) + return {}, 204 def delete(self): self._credentials_repository.remove_configured_credentials() + return {}, 204 diff --git a/monkey/monkey_island/cc/resources/credentials/stolen_propagation_credentials.py b/monkey/monkey_island/cc/resources/credentials/stolen_propagation_credentials.py index 74d509721..e733b2297 100644 --- a/monkey/monkey_island/cc/resources/credentials/stolen_propagation_credentials.py +++ b/monkey/monkey_island/cc/resources/credentials/stolen_propagation_credentials.py @@ -21,6 +21,8 @@ class StolenPropagationCredentials(AbstractResource): def post(self): credentials = Credentials.from_mapping(request.json) self._credentials_repository.save_stolen_credentials(credentials) + return {}, 204 def delete(self): self._credentials_repository.remove_stolen_credentials() + return {}, 204