elgentos / frontend2fa
elgentos/frontend2fa
Magento 2 Frontend 2FA implementation
Elgentos_Frontend2FA
This extension is based on Neyamtux_Authenticator, which offers 2FA for the backend.
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
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
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 pageview/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
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
Setup page (in My Account)

2FA authentication after logging in when setup is done

Configuration in backend

2FA reset button in backend

License
This project is licensed under the MIT License
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Released |
|---|---|---|---|
| 1.2.0 | stable | Fail | 2026-02-09 13:47:13 |
| 1.1.0 | stable | Not tested | 2025-06-16 09:38:17 |
| 1.0.1 | stable | Not tested | 2025-04-10 12:24:56 |
| 1.0.0 | stable | Not tested | 2024-03-20 12:46:48 |
| 0.1.11 | stable | Not tested | 2021-11-19 14:02:31 |
| 0.1.10 | stable | Not tested | 2021-08-18 10:00:40 |
| 0.1.9 | stable | Not tested | 2021-03-03 10:42:13 |
| 0.1.8 | stable | Not tested | 2019-03-20 10:17:51 |
| 0.1.7 | stable | Not tested | 2019-03-19 09:03:16 |
| 0.1.6 | stable | Not tested | 2019-03-19 08:39:12 |
| 0.1.5 | stable | Not tested | 2019-03-19 08:34:38 |
| 0.1.4 | stable | Not tested | 2019-03-08 14:14:39 |
| 0.1.3 | stable | Not tested | 2019-03-06 13:28:22 |
| 0.1.1 | stable | Not tested | 2019-03-06 13:24:36 |
| 0.1.2 | stable | Not tested | 2019-03-06 13:24:36 |
| 0.1.0 | stable | Not tested | 2019-03-06 13:05:25 |
Requires 2
| Package | Constraint |
|---|---|
| juashyam/authenticator | dev-master |
| endroid/qr-code | ^6 |
| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 4 | 4 errors (gating threshold: error-severity=10, ruleset: Magento2) |
| PHPStan | Error | 0 | composer require failed on PHP 8.3 — Your requirements could not be resolved to an installable set of packages. Problem 1 |
| Cpd | Fail | 1 | 1 duplicated chunk spanning 32 total lines (min-lines=5, min-tokens=70) |
| Security | Pass | 0 |
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.