updatePassword method

Future<Response> updatePassword(
  1. String email,
  2. String password,
  3. String newPassword,
  4. String jwt,
)

Lists a user in the users services and returns Future<http.Response>

Implementation

Future<http.Response> updatePassword(
    String email, String password, String newPassword, String jwt) {
  var url = wsURL + 'update' + '/' + 'password';

  return http.put(Uri.parse(url), headers: {
    HttpHeaders.authorizationHeader: 'Bearer ' + jwt
  }, body: {
    'email': email,
    'password': password,
    'newPassword': newPassword
  });
}