FriendlyCaptcha / friendly-captcha-wordpress

WordPress plugin for Friendly Captcha. Protect WordPress website forms from spam and abuse with Friendly Captcha, a privacy-first anti-bot solution.
https://friendlycaptcha.com
19 stars 9 forks source link

Fix login error being displayed on page load #100

Closed merlinfuchs closed 1 year ago

merlinfuchs commented 1 year ago

Because the authenticate hook is being called for the first time when the page is loaded it would always display an error because the POST body would be empty. Now we check if there is already an error (which seems to be product by WP for GET requests) and then return that.

fixes #97

https://wordpress.stackexchange.com/a/395662