From 5826ef17678ab965923ec767fee7ed12603f5756 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 2 Aug 2022 18:24:00 +0530 Subject: [PATCH] Island: Fixes docstrings in Authenticate and Registration resources according to PEP 257 --- monkey/monkey_island/cc/resources/auth/authenticate.py | 2 ++ monkey/monkey_island/cc/resources/auth/register.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/monkey/monkey_island/cc/resources/auth/authenticate.py b/monkey/monkey_island/cc/resources/auth/authenticate.py index f7ffe251b..9ea06f307 100644 --- a/monkey/monkey_island/cc/resources/auth/authenticate.py +++ b/monkey/monkey_island/cc/resources/auth/authenticate.py @@ -32,6 +32,8 @@ class Authenticate(AbstractResource): def post(self): """ + Authenticates a user + Gets a username and password from the request sent from the client, authenticates, and returns an access token diff --git a/monkey/monkey_island/cc/resources/auth/register.py b/monkey/monkey_island/cc/resources/auth/register.py index d3938ec7b..56178ea20 100644 --- a/monkey/monkey_island/cc/resources/auth/register.py +++ b/monkey/monkey_island/cc/resources/auth/register.py @@ -23,6 +23,8 @@ class Registration(AbstractResource): def post(self): """ + Registers a new user + Gets a username and password from the request sent from the client, and registers a new user