changePasswordByVerifyCode method

  1. @override
Future<bool> changePasswordByVerifyCode(
  1. String password,
  2. ContactType contactType,
  3. String contact,
  4. String verifyCode, {
  5. HandleError? onError,
})
override

Implementation

@override
Future<bool> changePasswordByVerifyCode(
  String password,
  ContactType contactType,
  String contact,
  String verifyCode, {
  HandleError? onError,
}) async {
  return await helper.put("/password/by-verify-code",
          data: {
            "new_password": password,
            "contact_type": contactTypes[contactType],
            "contact": contact,
            "verify_code": verifyCode,
          },
          handleError: onError) !=
      false;
}