How To

How to install Official Google Recaptcha & Google Two Factor Authentication(2FA) in Magento 2.x

King of Ecommerce “Magento” is on the way to secure his CMS with two new add-ons of Google reCAPTCHA and Two-Factor Authentication (2FA) functionality. Previously this functionality is already available for Magento 2 Extension via Third party extension developers like us.

“No CAPTCHA reCAPTCHA” was introduced by Google back in 2014, to fight and protect the websites from Internet spam and abuse. Moreover, reCAPTCHA uses advanced algorithms to identify the difference between humans including Invisible reCAPTCHA. Also, “Two-Factor Authentication” comes from Google, to ensure secure access by entering the second password to verify authorized access.

Magento has added reCAPTCHA support Magento admin login and some of the store frontend CMS pages like a sign-up, sign-in, forgot password and contact form. Apart from that, Magento has also added support for software authentication apps and hardware authentication devices including Google Authenticator, Authy, U2F devices, and Duo Security to generate & verify access for 2FA.

Till today, Store owners are eagerly waiting for the Official launch of this Security Enhancement, and finally, Magento did it last night. As per Official notes released by Magento security team, this feature is now available for Open Source Magento, Commerce, and Commerce (Cloud) v2.1 and v2.2. As of now, these features were delivered as a security enhancement to protect your Magento store and you can simply integrate both features just by running a few commands from SSH.

To install Google Recaptcha, You have to execute following composer command:

composer require msp/recaptcha:2.0.0

And to enable this module, run following command.

php bin/magento module:enable --all
php bin/magento setup:upgrade

For more help, you can read the Official Magento User guide.

In the case of emergency or to disable this module, run below command from your command line.

php bin/magento msp:security:recaptcha:disable

To integrate Two-Factor Authentication, run the following composer command:

composer require msp/twofactorauth:3.0.0

And to enable this module, execute below command.

php bin/magento module:enable --all
php bin/magento setup:upgrade

For more help, you can read the Official Magento User guide.

To generate an authentication code, you can use download and install the authenticator from Google Play or IOS App Store depending upon device type.

At last Magento has given surety that these features will be included in default installations and upgrades from the upcoming 2.3 versions.
For more updates like this stay tuned to MageComp blog and now because you are happy by getting rid of spam don’t forget to shine below loverly stars.
Stay Safe, Stay Secure!

Click to rate this post!
[Total: 3 Average: 5]
Dhiren Vasoya

Dhiren Vasoya is a Director and Co-founder at MageComp, Passionate 🎖️ Certified Magento Developer👨‍💻. He has more than 9 years of experience in Magento Development and completed 850+ projects to solve the most important E-commerce challenges. He is fond❤️ of coding and if he is not busy developing then you can find him at the cricket ground, hitting boundaries.🏏

Recent Posts

What are Net Sales? How to Calculate Your Net Sales?

In the world of business, understanding financial metrics is crucial for making informed decisions and…

2 days ago

Magento 2 Extensions Digest April 2024 (New Release & Updates)

Welcome to the MageComp Monthly Digest, where we bring you the latest updates, releases, and…

2 days ago

The ABCs of Geofencing: Definition, Features and Uses

In this era, businesses are always on the lookout for ways to engage with their…

3 days ago

How to Delete Product Variant in a Shopify Remix App using GraphQL Mutations?

Managing a Shopify store efficiently involves keeping your product catalog organized. This includes removing outdated…

3 days ago

6 Innovative Tools Revolutionizing E-Commerce Operations

E-commerce has transformed the way consumers shop for products and services and interact with businesses.…

6 days ago

How Upcoming Cookie Changes Will Affect Your E-commerce Website?

The e-commerce world is constantly in flux. New tech and strategies emerge daily to help…

6 days ago