PHPackages                             fiko/magento2-customer-two-factor-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fiko/magento2-customer-two-factor-auth

ActiveMagento2-module[Authentication &amp; Authorization](/categories/authentication)

fiko/magento2-customer-two-factor-auth
======================================

2 factor authentication for Customer

1.0.6(2y ago)0281MITPHP

Since Mar 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/fiko/magento2-customer-two-factor-auth)[ Packagist](https://packagist.org/packages/fiko/magento2-customer-two-factor-auth)[ RSS](/packages/fiko-magento2-customer-two-factor-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (13)Used By (0)

Magento 2 Two Factor Auth
=========================

[](#magento-2-two-factor-auth)

[![Magento 2 Two Factor Auth](https://camo.githubusercontent.com/8ad33f469c03e73dd7d93847d543a0d927a61f9782cc073ffd981f6f70e864b1/68747470733a2f2f692e696d6775722e636f6d2f796b416f6d4c4c2e706e67)](https://camo.githubusercontent.com/8ad33f469c03e73dd7d93847d543a0d927a61f9782cc073ffd981f6f70e864b1/68747470733a2f2f692e696d6775722e636f6d2f796b416f6d4c4c2e706e67)

It's a magento 2 module to enable two factor authentication for customer to secure their login step.

How to install?
---------------

[](#how-to-install)

#### Via Composer

[](#via-composer)

If you try to install via composer, just require your project to the module by running this command :

```
composer require fiko/magento2-customer-two-factor-auth

```

#### Manually

[](#manually)

1. Download this repo
2. Create a Directory `app/code/Fiko/CustomerTwoFactorAuth`
3. Copy downloaded repo to this directory

Once you download it (both composer or manually), just run this commands to apply this module to your project :

```
php bin/magento setup:upgrade --keep-generated
php bin/magento setup:di:compile

```

How to use?
-----------

[](#how-to-use)

### Customer Guide

[](#customer-guide)

#### 1. Enable Two Factor Authentication

[](#1-enable-two-factor-authentication)

1. Login with customer account.
2. Go to my account.
3. Go to Account Security on sidebar.
4. Enable Login Security.
5. Scan the QR Code.
6. Confirm the code.
7. Try to logout and login back again.

#### 2. Disable Two Factor Authentication

[](#2-disable-two-factor-authentication)

1. Login with customer account.
2. Validate the OTP.
3. Go to my account.
4. Go to Account Security on sidebar.
5. Disable Login Security.
6. Input current password.
7. Try to logout and login back again.

### Admin Guide

[](#admin-guide)

#### 1. Generate Secret Key

[](#1-generate-secret-key)

1. Login onto adminhtml.
2. Customers &gt; All Customers.
3. Edit one of the customer.
4. Click `Generate 2FA Secret Key`.
5. Go to `Account Information` tab.
6. See field of `2FA Secret Key`.

#### 2. Enable Two Factor Authentication

[](#2-enable-two-factor-authentication)

1. Login onto adminhtml.
2. Customers &gt; All Customers.
3. Edit one of the customer.
4. Go to `Account Information` tab.
5. Check `Enable 2FA` field (make sure the `2FA Secret Key` is not empty.
6. Save the secret key and setup it on your authenticator app.
7. Save and try login.

#### 3. Disable Two Factor Authentication

[](#3-disable-two-factor-authentication)

1. Login onto adminhtml.
2. Customers &gt; All Customers.
3. Edit one of the customer.
4. Go to `Account Information` tab.
5. Check `Disable 2FA` field.
6. Save and try login.

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](COPYING.txt) © 2022

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~132 days

Total

5

Last Release

970d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32075735?v=4)[Fiko Borizqy](/maintainers/fiko)[@fiko](https://github.com/fiko)

---

Top Contributors

[![fiko](https://avatars.githubusercontent.com/u/32075735?v=4)](https://github.com/fiko "fiko (32 commits)")

### Embed Badge

![Health badge](/badges/fiko-magento2-customer-two-factor-auth/health.svg)

```
[![Health](https://phpackages.com/badges/fiko-magento2-customer-two-factor-auth/health.svg)](https://phpackages.com/packages/fiko-magento2-customer-two-factor-auth)
```

###  Alternatives

[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[bitexpert/magento2-force-customer-login

The Force Login module for Magento2 redirects a storefront visitor to the Magento2 Frontend login page, if the visitor is not logged in. It is possible to configure the whitelisted urls to add custom definitions.

171409.9k](/packages/bitexpert-magento2-force-customer-login)[scheb/2fa-google-authenticator

Extends scheb/2fa-bundle with two-factor authentication using Google Authenticator

298.2M30](/packages/scheb-2fa-google-authenticator)[scheb/2fa-totp

Extends scheb/2fa-bundle with two-factor authentication using TOTP

292.7M22](/packages/scheb-2fa-totp)[born05/craft-twofactorauthentication

Craft 4 plugin for two-factor or two-step login using Time Based OTP.

36100.1k1](/packages/born05-craft-twofactorauthentication)[msp/twofactorauth

Two Factor Authentication module for Magento2 - Member of MageSpecialist SecuritySuite

4462.1k2](/packages/msp-twofactorauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
