PHPackages                             elgentos/frontend2fa - 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. elgentos/frontend2fa

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

elgentos/frontend2fa
====================

Magento 2 Frontend 2FA implementation

1.2.0(3mo ago)2110.5k↓66.7%15[1 issues](https://github.com/elgentos/frontend2fa/issues)[2 PRs](https://github.com/elgentos/frontend2fa/pulls)MITPHP

Since Mar 6Pushed 3mo ago16 watchersCompare

[ Source](https://github.com/elgentos/frontend2fa)[ Packagist](https://packagist.org/packages/elgentos/frontend2fa)[ RSS](/packages/elgentos-frontend2fa/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (17)Used By (0)

Elgentos\_Frontend2FA
=====================

[](#elgentos_frontend2fa)

This extension is based on [Neyamtux\_Authenticator](https://github.com/juashyam/2-Factor-Authentication/), which offers 2FA for the backend.

Features
--------

[](#features)

- Ability to force frontend 2FA for specific customer groups;
- 2FA is enforced for chosen customer groups meaning the customer has to either setup or authenticate before continuing after logging in;
- All customers in any group can optionally set their own 2FA;
- Open the customer in the backend to be able to reset the 2FA secret;
- Dutch translation files;
- Hyva theme support with Tailwind CSS templates.

Installation
------------

[](#installation)

```
composer require elgentos/frontend2fa
php bin/magento module:enable Elgentos_Frontend2FA
php bin/magento module:enable Neyamtux_Authenticator
php bin/magento setup:upgrade

```

Hyva Theme Support
------------------

[](#hyva-theme-support)

This module includes Hyva-compatible templates that use Tailwind CSS classes. The Hyva templates are automatically loaded when a Hyva theme is active and provide the same functionality with Hyva's styling approach.

The following Hyva templates are included:

- `view/frontend/templates/hyva/setup.phtml` - Two-Factor Authentication setup page
- `view/frontend/templates/hyva/authenticate.phtml` - Two-Factor Authentication login page

The templates are responsive and use Tailwind utility classes for styling.

Integration with other authentication systems
---------------------------------------------

[](#integration-with-other-authentication-systems)

To bypass the 2FA requirement for a specific logged in user, for example if you are using a Single Sign-On system for certain users, set this value in their customer session:

```
$customerSession->set2faSuccessful(true);

```

Screenshots
-----------

[](#screenshots)

Setup page (in My Account)

[![image](https://user-images.githubusercontent.com/431360/53883116-69cdd280-4018-11e9-89a2-c1a471c51d64.png)](https://user-images.githubusercontent.com/431360/53883116-69cdd280-4018-11e9-89a2-c1a471c51d64.png)

2FA authentication after logging in when setup is done

[![image](https://user-images.githubusercontent.com/431360/53883181-98e44400-4018-11e9-8bc0-d98676e3527a.png)](https://user-images.githubusercontent.com/431360/53883181-98e44400-4018-11e9-8bc0-d98676e3527a.png)

Configuration in backend

[![image](https://user-images.githubusercontent.com/431360/53885104-3b9ec180-401d-11e9-98bc-ec1a2df3fa6c.png)](https://user-images.githubusercontent.com/431360/53885104-3b9ec180-401d-11e9-98bc-ec1a2df3fa6c.png)

2FA reset button in backend

[![image](https://user-images.githubusercontent.com/431360/53883268-ce892d00-4018-11e9-84f6-aa1c0fc2e34a.png)](https://user-images.githubusercontent.com/431360/53883268-ce892d00-4018-11e9-84f6-aa1c0fc2e34a.png)

License
-------

[](#license)

This project is licensed under the MIT License

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance80

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 72.5% 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 ~194 days

Recently: every ~385 days

Total

14

Last Release

98d ago

Major Versions

0.1.11 → 1.0.02024-03-20

PHP version history (2 changes)0.1.0PHP ~5.5.0|~5.6.0|~7.0.0|~7.1.0|~7.2.0|~7.3.0

0.1.10PHP ~5.5.0|~5.6.0|~7.0.0|~7.1.0|~7.2.0|~7.3.0|~7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/88a6d8dc588e8f2a0948335563a754687f71304f0bd3b7f7049d4bcdc00a563c?d=identicon)[peterjaap](/maintainers/peterjaap)

---

Top Contributors

[![peterjaap](https://avatars.githubusercontent.com/u/431360?v=4)](https://github.com/peterjaap "peterjaap (29 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (7 commits)")[![johnorourke](https://avatars.githubusercontent.com/u/2004038?v=4)](https://github.com/johnorourke "johnorourke (2 commits)")[![guido7171](https://avatars.githubusercontent.com/u/2702966?v=4)](https://github.com/guido7171 "guido7171 (1 commits)")[![shyamcorra](https://avatars.githubusercontent.com/u/84558630?v=4)](https://github.com/shyamcorra "shyamcorra (1 commits)")

---

Tags

2fa2fa-securitymagento2magento2-extensionmagento2-extension-freemagento2-module

### Embed Badge

![Health badge](/badges/elgentos-frontend2fa/health.svg)

```
[![Health](https://phpackages.com/badges/elgentos-frontend2fa/health.svg)](https://phpackages.com/packages/elgentos-frontend2fa)
```

###  Alternatives

[born05/craft-twofactorauthentication

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

36100.1k1](/packages/born05-craft-twofactorauthentication)

PHPackages © 2026

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