diff --git a/pandora_console/general/register.php b/pandora_console/general/register.php index 8c10adc32b..6d15c7ab2f 100644 --- a/pandora_console/general/register.php +++ b/pandora_console/general/register.php @@ -186,6 +186,88 @@ try { $welcome = false; } +$double_auth_enabled = (bool) db_get_value('id', 'tuser_double_auth', 'id_user', $config['id_user']); + +if (!$double_auth_enabled && $config['2FA_all_users'] != '' + && $config['2Fa_auth'] != '1' + && $config['double_auth_enabled'] +) { + echo '