Quantcast
Channel: WordPress.org Forums » [All-In-One Security (AIOS) – Security and Firewall] Unresolved Topics
Viewing all articles
Browse latest Browse all 259

validate aiowps-captcha-answer

$
0
0

Replies: 4

Hi – i integrated the simple math equation (aiowps-captcha-answer) into jquery.validate.js:

var captcha = $(".aiowps-captcha-answer");
if(captcha.length !== 0) {
//changing input type to number for better validation
captcha.removeProp('type').prop('type', 'number');
captcha.rules( "add", {
required: true,
messages: {
required: "Ce champs est requis.",
number: "Chiffres seulment!"
}
});
} else {
console.log('no captcha');
}

This works fine. But when i enter a wrong result, a new tab opens saying: «Error: You entered an incorrect CAPTCHA answer, please go back and try again.» This is not very user friendly. Is there a way that this message can be integrated as error message just like the ones shown in code above? Regards Theo

  • This topic was modified 2 days ago by timholz. Reason: wrong spelling

Viewing all articles
Browse latest Browse all 259

Trending Articles