recoverPasswordWithOtp method
Implementation
Future<bool> recoverPasswordWithOtp(String email, String otp,
String newPassword, String confirmNewPassword) async {
var req = await HttpRequest().httpRequest(
HttpIntent("auth/forgot_password/confirm", {
"email": email,
"password": newPassword,
"confirm_password": confirmNewPassword,
"otp": otp
}),
context: context,
method: HttpMethod.post,
"Richiedo reset password...",
dialog: dialog);
if (!elaborateResponse(req)) {
return false;
}
return true;
}