Skip to content

Commit

Permalink
Merge pull request #597 from jebh/patch-1
Browse files Browse the repository at this point in the history
Only reset captcha if being used
  • Loading branch information
splendido committed Dec 12, 2015
2 parents 34de5ce + 717b95d commit 1765525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/templates_helpers/at_pwd_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ AT.prototype.atPwdFormEvents = {

return Meteor.call("ATCreateUserServer", options, function(error){
if (error && error.reason === 'Email already exists.') {
grecaptcha.reset();
if (AccountsTemplates.options.showReCaptcha) {
grecaptcha.reset();
}
}
AccountsTemplates.submitCallback(error, undefined, function(){
if (AccountsTemplates.options.sendVerificationEmail && AccountsTemplates.options.enforceEmailVerification){
Expand Down

0 comments on commit 1765525

Please sign in to comment.