Skip to content

How do I disable Two-Factor Authentication properly?

I’ve just installed Magento and tried to log into it as an admin. However, the Two-Factor Authentication message showed up:

enter image description here

After a bit of looking up, I decided to disable the Two-Factor Authentication by setting

‘Magento_TwoFactorAuth’ => 0

in xampp/htdocs/magento2/app/etc/config.php and then run ‘php bin/magento s:up’ command.

After that, I tried to access my site and this was what I got:

enter image description here

What had gone wrong and how should I fix it?