diff --git a/globals/config.php b/globals/config.php index 3c2696e..6de16a5 100644 --- a/globals/config.php +++ b/globals/config.php @@ -132,7 +132,6 @@ try $banned = checkIfBanned($GLOBALS['user']->id); $twofactor = isSession2FAUnlocked(); - //step 1, check if under maintenance if ($maintenance) { //maintenance redirect if ($accesseddirectory != "/maintenance.php") { diff --git a/globals/functions.php b/globals/functions.php index 51bd5fe..a2dadda 100644 --- a/globals/functions.php +++ b/globals/functions.php @@ -5334,7 +5334,7 @@ function initialize2FA($userid) $username = getUsername($userid); if ($username) { $secret = safeGenerate2FASecret(); - $qrcode = $GLOBALS['authenticator']->getQRCodeGoogleUrl($username, $secret, "alphaland.cc"); + $qrcode = $GLOBALS['authenticator']->getQRCodeGoogleUrl($username, $secret, "Alphaland"); $new2fa = $GLOBALS['pdo']->prepare("INSERT INTO `google_2fa`(`userid`, `secret`, `qr`, `whenGenerated`) VALUES (:uid, :secret, :qr, UNIX_TIMESTAMP())"); $new2fa->bindParam(":uid", $userid, PDO::PARAM_INT); $new2fa->bindParam(":secret", $secret, PDO::PARAM_STR); diff --git a/html/settings/index.php b/html/settings/index.php index 516dd95..ca276ea 100644 --- a/html/settings/index.php +++ b/html/settings/index.php @@ -19,7 +19,7 @@ $body = <<