verifyCaptcha static method

Future verifyCaptcha(
  1. String code,
  2. String token
)

Sends the code entered by the user to LeanCloud for verification.

Also sends the token so LeanCloud can recognize which CAPTCHA to verify.

Implementation

static Future verifyCaptcha(String code, String token) async {
  String path = 'verifyCaptcha';
  Map<String, dynamic> data = {'captcha_code': code, 'captcha_token': token};
  await LeanCloud._httpClient.post(path, data: data);
}