PHPackages                             pmclain/magento2-tfa - 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. pmclain/magento2-tfa

Abandoned → [msp/twofactorauth](/?search=msp%2Ftwofactorauth)ArchivedMagento2-module[Authentication &amp; Authorization](/categories/authentication)

pmclain/magento2-tfa
====================

Two Factor Authentication for Magento 2 Admin

1.1.1(8y ago)208.2k4OSL-3.0PHPPHP ~7.0.0|~7.1.0

Since Feb 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pmclain/magento2-tfa)[ Packagist](https://packagist.org/packages/pmclain/magento2-tfa)[ RSS](/packages/pmclain-magento2-tfa/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (3)Versions (9)Used By (0)

Magento 2 Admin Panel Two Factor Authentication
===============================================

[](#magento-2-admin-panel-two-factor-authentication)

[![Build Status](https://camo.githubusercontent.com/3deeec136ec3a343ff405fda994efe8c34e1d4ac7de2856186f6526c7b1aae59/68747470733a2f2f7472617669732d63692e6f72672f706d636c61696e2f6d6167656e746f322d7466612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pmclain/magento2-tfa)[![Latest Stable Version](https://camo.githubusercontent.com/40de5c9597c4566a4643413142b0c0c9d17413704ea1f04f6fa08f4ba3f07f6a/68747470733a2f2f706f7365722e707567782e6f72672f706d636c61696e2f6d6167656e746f322d7466612f762f737461626c65)](https://packagist.org/packages/pmclain/magento2-tfa) [![Total Downloads](https://camo.githubusercontent.com/4afac9bd384dbe5b917b42f4e73a41a4f39a4259672663c963b24bafc96db934/68747470733a2f2f706f7365722e707567782e6f72672f706d636c61696e2f6d6167656e746f322d7466612f646f776e6c6f616473)](https://packagist.org/packages/pmclain/magento2-tfa)

Two Factor Authentication to the Magento 2 admin panel using Google Authenticator

#### Server Time

[](#server-time)

It's extremely important that you keep your server time in sync with some NTP server.

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

[](#installation)

In your Magento 2 base directory run:
`composer require pmclain/magento2-tfa`
`bin/magento setup:upgrade`

- TFA must be enabled by the individual user by clicking 'Account Setting(user)' in the Magento 2 admin panel.
- Once there, the user is able to enable the two factor authentication and view the QR code for a Google Authenticator compatible application.
- Users with TFA enabled will not be able to log into the admin panel without a valid authentication code input on the Magento 2 admin login page.
- Users with TFA disabled can leave the 'Authenticator Code' field blank during login.

Console Commands
----------------

[](#console-commands)

TFA can be disabled using console commands if needed:

##### Disable TFA For All Admin Users

[](#disable-tfa-for-all-admin-users)

`bin/magento pmclain:tfa:disable`

##### Disable TFA For Single Admin User (by email)

[](#disable-tfa-for-single-admin-user-by-email)

`bin/magento pcmlain:tfa:disable admin@example.com`

Magento Version Compatibility
-----------------------------

[](#magento-version-compatibility)

ReleaseMagento Version1.1.x2.2.x1.0.x2.1.x1.0.x2.0.xGoogle Authenticator Apps:
--------------------------

[](#google-authenticator-apps)

To use the two factor authentication, your user will have to install a Google Authenticator compatible app, below are some currently available:

- [Authy for iOS, Android, Chrome, OS X](https://www.authy.com/)
- [FreeOTP for iOS, Android and Peeble](https://fedorahosted.org/freeotp/)
- [FreeOTP for iOS, Android and Peeble](https://www.toopher.com/)
- [Google Authenticator for iOS](http://itunes.apple.com/us/app/google-authenticator/id388497605?mt=8%22)
- [Google Authenticator for Android](https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2%22)
- [Google Authenticator for Blackberry](https://m.google.com/authenticator%22)
- [Google Authenticator (port) on Windows app store](http://apps.microsoft.com/windows/en-us/app/google-authenticator/7ea6de74-dddb-47df-92cb-40afac4d38bb%22)
- [Microsoft Authenticator for Windows Phone](https://www.microsoft.com/en-us/store/apps/authenticator/9wzdncrfj3rj)
- [1Password for iOS, Android, OSX, Windows](https://1password.com)

License
-------

[](#license)

Open Software License v3.0

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~61 days

Recently: every ~36 days

Total

7

Last Release

3052d ago

Major Versions

0.0.2 → 1.0.02017-09-27

PHP version history (3 changes)0.0.1PHP ~5.5.0|~5.6.0|~7.0.0|~7.1.0

1.0.2PHP ~5.5.0||~5.6.0||~7.0.0

1.1.1PHP ~7.0.0|~7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/671fcbe5c3d71446e58842e366265b4f658b6e1dd70b70b6c960e8e666ee465f?d=identicon)[pmclain](/maintainers/pmclain)

---

Top Contributors

[![pmclain](https://avatars.githubusercontent.com/u/12674247?v=4)](https://github.com/pmclain "pmclain (9 commits)")[![edmondscommerce](https://avatars.githubusercontent.com/u/62842?v=4)](https://github.com/edmondscommerce "edmondscommerce (1 commits)")

---

Tags

magento2magento2-extensiontwo-factor-authentication

### Embed Badge

![Health badge](/badges/pmclain-magento2-tfa/health.svg)

```
[![Health](https://phpackages.com/badges/pmclain-magento2-tfa/health.svg)](https://phpackages.com/packages/pmclain-magento2-tfa)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[statamic/cms

The Statamic CMS Core Package

4.8k3.5M923](/packages/statamic-cms)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[jeffgreco13/filament-breezy

A custom package for Filament with login flow, profile and teams support.

1.0k1.9M53](/packages/jeffgreco13-filament-breezy)[laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

1.7k47.7M354](/packages/laravel-fortify)[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.8k69.4k](/packages/grumpydictator-firefly-iii)

PHPackages © 2026

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