From 23d732e398471ade1d28c7ec1e61977329df07ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 2 Jun 2020 10:08:17 +0200 Subject: [PATCH] chg: Remove extra parameter in change_user_password --- pymisp/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index 806a7b1..e63a37f 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -1376,7 +1376,8 @@ class PyMISP: response = self._prepare_request('POST', f'admin/users/delete/{user_id}') return self._check_json_response(response) - def change_user_password(self, new_password: str, user: Optional[Union[MISPUser, int, str, UUID]]=None) -> Dict: + def change_user_password(self, new_password: str) -> Dict: + '''Thange the password of the curent user''' response = self._prepare_request('POST', 'users/change_pw', data={'password': new_password}) return self._check_json_response(response)