verifyCaptcha static method
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);
}