resetPasswordByEmailCode static method

Future<AuthResult> resetPasswordByEmailCode(
  1. String email,
  2. String code,
  3. String password
)

reset password by email and an email code.

Implementation

static Future<AuthResult> resetPasswordByEmailCode(
    String email, String code, String password) async {
  var body = jsonEncode(
      {'email': email, 'code': code, 'newPassword': Util.encrypt(password)});
  final Result result = await post('/api/v2/password/reset/email', body);
  return AuthResult(result);
}