Skip to content

Commit

Permalink
chg: Remove extra parameter in change_user_password
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jun 2, 2020
1 parent 1e9eed1 commit 23d732e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pymisp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,8 @@ def delete_user(self, user: Union[MISPUser, int, str, UUID]) -> Dict:
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)

Expand Down

0 comments on commit 23d732e

Please sign in to comment.