$configPath = substr(__DIR__,0,strpos(__DIR__,"/public_html"))."/config.php"; include_once($configPath); $error = true; if (!empty($_SESSION["utente"]) && empty($_SESSION["utente"]->getInfo()["twoFactor_token"])) { $tfa = new RobThree\Auth\TwoFactorAuth('TUTTOGARE-PA-30'); $_SESSION['secret'] = $secret = $tfa->createSecret(); $salt = $config["2FA-salt"]; ?>