Skip to content

Commit

Permalink
captcha reset on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nickchaula committed Jul 11, 2022
1 parent 5781a7b commit dec7af6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/RegistrationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,15 @@ function (
//console.log('vn');
self.registerUser(postData);
} else {
alert('Something went wrong with reCAPTCHA. Please try again or refresh the page and try again.');
//alert('Something went wrong with reCAPTCHA. Please try again or refresh the page and try again.');
//console.log(response.data);
grecaptcha.reset();
}
})
.catch((error) => {
alert('Something went wrong with reCAPTCHA. Please refresh the page and try again.');
console.error(error);
alert('Could not verify reCAPTCHA. Please try again.');
grecaptcha.reset();
//console.error(error);
});
}
}, function (errors) {
Expand Down

0 comments on commit dec7af6

Please sign in to comment.