[Your login code] – I need to disable the action Your access code

Hi Support Team :v:!

I am trying to disable two-factor authentication for logging into my portal. I currently have the following settings in my config.php file:

<?php
	return [
		//= ❗️Error's
		'debug' => true,

		// https://getkirby.com/docs/reference/system/options/auth#login-methods
		'auth' => [
			'methods' => 'password'
		],

		//= Logout
		'routes' => [
			[
				'pattern' => 'logout',
				'action'  => function() {
					if ($user = kirby()->user()) {
						$user->logout();
					}

					// Go to >
					go('login');
				}
			]
		],
	];
?>

When a user subscribes, they receive a personalized notification, but in addition to that, they receive an email with the following content:

Your login code

I would like that email not to reach you because my login is only with a password and not with a code. Even in my auth methods parameters I only have password activated.

I await your response and help please.

Thank you very much.

Regards!

Is that the only config file? Without the code method being enabled, or 2FA being enabled, they should not receive a code email.

Hi @texnixe !

If that is my original auth code in my config.php file.

How could I disable the login code?

I am not very clear about your message or could you please give me an example or link to documentation.

I await your response and help please.

Thank you very much.

Regards!

I wanted to know if you maybe use multiple config files for different environments and one of them has a different setting for auth.methods?

Hi @texnixe !

Thank you very much for your reply and help.

No, at the moment I only have one config.php file for both test and production environments.

I await your response and help please.

Thank you very much.

Regards!