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 integration for wordpress login, register, and forgot password #96

Closed merlinfuchs closed 1 year ago

merlinfuchs commented 1 year ago

According to the documentation of the authenticate hook we should return the $user variable if we want the login to succeed. Before this PR we returned nothing when the plugin is not configured correctly which will cause the authentication to fail. This is not what we want