requestResetPassword method

Future requestResetPassword (
  1. String email

If the user has forgottten his password, just provide the email and it will send an email with a password change link. @param email The email from the account (ex. EmailPassword or any other provider)


dynamic requestResetPassword(String email) async {
  if(email == null) {
    throw new sCNotify("Please define an email of the user as the first parameter.", sCNotifyTypes.ERROR);

  var client = new http.Client();
  try {
    Map<String, String> headers = {
      'appid': _app_id,
      'appsecret': _app_secret

    return await client.put(config.api_endpoint,
      headers: headers,
      body: {
        'function': 'request_reset_password',
        'email': email

  } catch(e) {
    return e;
  } finally {