sendResetPasswordRequest static method

Future<Response> sendResetPasswordRequest(
  1. String email
)

Implementation

static Future<http.Response> sendResetPasswordRequest(String email) async {
  String url = IvivaAccount().getAccountPath(
      IvivaAccount().getServiceApiUrl('UXP.SendPasswordResetRequest'));

  var client = http.Client();

  http.Response res = await client.post(
    Uri.parse(url),
    headers: {"Content-Type": "application/x-www-form-urlencoded"},
    body: {
      'LoginID': email,
    },
  );

  return res;
}