chg: Remove extra parameter in change_user_password

pull/591/head
Raphaël Vinot 2020-06-02 10:08:17 +02:00
parent 1e9eed198e
commit 23d732e398
1 changed files with 2 additions and 1 deletions

View File

@ -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)