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(4mo ago)114↓50%2[1 PRs](https://github.com/MagestyApps/module-disable-2fa/pulls)OSL-3.0PHPPHP &gt;=8.1

Since Dec 28Pushed 4mo 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 1mo 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

35

—

LowBetter than 80% of packages

Maintenance74

Regular maintenance activity

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

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

141d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a5c4f03fa1a210175f82285a2a6c797a467ca0a0a6a2105bba0e0d4d947fa6db?d=identicon)[magestyapps](/maintainers/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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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