Magento 2 Forgot Password Page Incorrect Captcha – Fix

captchacustomerformsmagento2magento2.2

In my magento site I have enabled Captcha for Forgot Password form of custom theme, but when I try to reset password with providing correct captcha code in the field, even then it shows "Incorrect Captcha" after refreshing & redirecting to same page.

I'm using magento-2-social-login

No warnings/errors either in the client or server.

Any suggestions please?

enter image description here

Best Answer

After every action Magento does refresh captcha session so if any Ajax URL run and you open your forgot password then at that time captcha session will be changed that's why you are getting error. Just click on reload captcha button and then refill again to proceed successfully.

You can add scripts to reload captcha when that from open so you will not get error again.

You can manually trigger reload by this

$('.action.captcha-reload'). trigger ('click');
Related Topic