Magento – Magento 2 CAPTCHA not showing when enabled

captchamagento2

Hope that someone may provide some guidance with an issue at hand .. and my limited knowledge.

Issue: CAPTCHA activated but not showing up in front end, except for
"Forgot password".

Environment: My dev and prod environments are running Magento CE 2.1.3, theme is Ultimo Infortis.

Steps to activate CAPTCHA:

  1. Backend Admin -> Stores -> Configuration -> Customer -> Customer Configuration -> Captcha:
    1.1. Enabled Enable CAPTCHA on Storefront = "Yes"
    1.2. Forms (selected all options: create user, login, forgot password, etc)
  2. Reindexed via SSH
  3. Backend Admin -> Flush cache

Test: Go to the portal, try to open an account or do whatever and the CAPTCHA does not show, except for "Forgot Password".

Note: If CAPTCHA gets disabled for all in the configuration, "Forgot Password" keeps showing it.

Any guidance on where to look at or something that can help with the resolution will be appreciated.

Best Answer

I was facing the same issue before and in my case it was caused by my theme's customer_account_login.xml file.

For example, if your theme is extending Magento_Blank theme, then you don't need to copy the entire contents of the customer_account_login.xml file to your theme to make changes to it --> this will "bug out" the CAPTCHA form.

The proper way to make changes is to use and to add, remove or move the elements as you want.

You can read instructions here on how to do that: http://devdocs.magento.com/guides/v2.2/frontend-dev-guide/layouts/xml-instructions.html

If you are facing the same issue, you can quickly test it by renaming/removing your theme's customer_account_login.xml and clearing cache.

Ref: CAPTCHA form not visible, after applying theme

Related Topic