changePassword method

Future<void> changePassword(
  1. String oldPassword,
  2. String newPassword
)

Updates the password of the current user

Implementation

Future<void> changePassword(String oldPassword, String newPassword) async {
  await _post('/api/account/password', data: {'oldPassword': oldPassword, 'password': newPassword});
}