magentoのYou need to configure Two-Factor Authorization のエラー


ログインしようとしたら

ローカルで、magentoをインストールして、ユーザーで、ログインしようとしたら、何かが出ました。

Magento Admin Panel
Failed to send the message. Please contact the administrator
Logout

You need to configure Two-Factor Authorization in order to proceed to your store's admin area

An E-mail was sent to you with further instructions

2要素認証?の話らしい。
MSP TwoFactorAuthモジュールというものをオフにすればいいらしい。
ローカルで練習したいだけなので、解除する。

magentoがあるところへ行き

/var/www/html/magento$ bin/magento module:disable Magento_TwoFactorAuth
The following modules have been disabled:
- Magento_TwoFactorAuth

Cache cleared successfully.
Generated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes.
Info: Some modules might require static view files to be cleared. To do this, run 'module:disable' with the --clear-static-content option to clear them.

ログインできるようになりました。

参考