PHPackages                             magestyapps/module-disable-2fa - 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. [Security](/categories/security)
4. /
5. magestyapps/module-disable-2fa

ActiveMagento2-module[Security](/categories/security)

magestyapps/module-disable-2fa
==============================

Disable Two Factor Authentication for specific admin users in Magento 2

1.0.0(7mo ago)1126↓57.1%2[1 PRs](https://github.com/MagestyApps/module-disable-2fa/pulls)OSL-3.0PHPPHP &gt;=8.1

Since Dec 28Pushed 7mo agoCompare

[ Source](https://github.com/MagestyApps/module-disable-2fa)[ Packagist](https://packagist.org/packages/magestyapps/module-disable-2fa)[ RSS](/packages/magestyapps-module-disable-2fa/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Packagist](https://camo.githubusercontent.com/a408b38ef1fddb45e805d423fdd4616048abdb2ff7e4918f4174a1d08e3e0fb1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616765737479617070732f6d6f64756c652d64697361626c652d3266612e737667)](https://packagist.org/packages/magestyapps/module-disable-2fa)

Magento 2 Disable Two-Factor Authentication Module
==================================================

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

Overview
--------

[](#overview)

The MagestyApps Disable2FA module allows store administrators to selectively disable Two-Factor Authentication (2FA) for specific admin users in Magento 2. This is particularly useful for development environments, automated testing, or for admin users who don't require the additional security layer.

Features
--------

[](#features)

- Selectively disable 2FA for specific admin users
- Command-line interface to disable 2FA for users
- Admin interface integration with user edit form
- Compatible with Magento's native Two-Factor Authentication module

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Magento 2.4.x
- Magento Two-Factor Authentication module

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

[](#installation)

### Via Composer

[](#via-composer)

```
composer require magestyapps/module-disable-2fa
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
```

### Manual Installation

[](#manual-installation)

1. Create the following directory structure in your Magento installation: `app/code/MagestyApps/Disable2FA`
2. Download the module and extract it to the directory you created
3. Enable the module by running the following commands:

```
bin/magento module:enable MagestyApps_Disable2FA
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy
```

Configuration
-------------

[](#configuration)

### Admin User Configuration

[](#admin-user-configuration)

1. Log in to the Magento Admin Panel
2. Navigate to System &gt; Permissions &gt; All Users
3. Edit an existing user or create a new one
4. In the user edit form, you'll find a new option "Enable 2FA" with Yes/No options
5. Select "No" to disable 2FA for this specific user
6. Save the user

### Command Line Interface

[](#command-line-interface)

The module provides a command-line interface to disable 2FA for a specific admin user:

```
bin/magento security:tfa:disable
```

Replace `` with the admin username for which you want to disable 2FA.

How It Works
------------

[](#how-it-works)

The module works by:

1. Adding a "disable\_tfa" field to the admin user database table
2. Adding a corresponding field to the admin user edit form
3. Intercepting the 2FA authentication process and bypassing it for users with 2FA disabled

Support
-------

[](#support)

For issues, questions, or contributions, please create an issue on the GitHub repository or contact MagestyApps support.

License
-------

[](#license)

This module is licensed under the Open Software License (OSL 3.0) and the Academic Free License (AFL 3.0).

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance62

Regular maintenance activity

Popularity17

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

232d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11487119?v=4)[MagestyApps](/maintainers/magestyapps)[@MagestyApps](https://github.com/MagestyApps)

---

Tags

magento2magento2-developer-toolsmagento2-extensionmagento2-module

### Embed Badge

![Health badge](/badges/magestyapps-module-disable-2fa/health.svg)

```
[![Health](https://phpackages.com/badges/magestyapps-module-disable-2fa/health.svg)](https://phpackages.com/packages/magestyapps-module-disable-2fa)
```

###  Alternatives

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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