Skip to content

Commit 4d783ba

Browse files
committed
Make module a dev dependency to resolve Adobe Commerce Cloud security report/warning #26
1 parent 587d0dc commit 4d783ba

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ When you disable a module, it updates the `app/etc/config.php` file with the rem
4242
## Installation
4343

4444
```
45-
composer require markshust/magento2-module-disabletwofactorauth
45+
composer require --dev markshust/magento2-module-disabletwofactorauth
4646
bin/magento module:enable MarkShust_DisableTwoFactorAuth
4747
bin/magento setup:upgrade
4848
```
@@ -52,6 +52,8 @@ bin/magento setup:upgrade
5252
This module automatically disables 2FA in developer mode (since version 2.0.0). In any other deployment mode, 2FA is kept enabled by default. This is to prevent any unexpected side effects or security loopholes from
5353
being introduced during automated installation processes.
5454

55+
It is highly recommended to install this module as a dev dependency to avoid security warning reports from either Adobe Commerce or other production environments which run security checks. This can be done either by passing in the `--dev` flag when installing it with Composer, or by adding it to the `require-dev` property of your `composer.json` file.
56+
5557
### Disable 2FA
5658

5759
It may still be desirable to disable 2FA in non-production environments, such as within testing or internal staging environments. For these cases, 2FA is not automatically disabled. However, there are toggles to override the default Magento settings to disable 2FA within these environments.

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
22
"name": "markshust/magento2-module-disabletwofactorauth",
33
"description": "The DisableTwoFactorAuth module provides the ability to disable two-factor authentication.",
4+
"keywords": [
5+
"dev",
6+
"magento",
7+
"magento2",
8+
"two-factor",
9+
"authentication",
10+
"2fa"
11+
],
412
"require": {
513
"php": "^7||^8",
614
"magento/framework": "^103"

0 commit comments

Comments
 (0)