From c13fa32eef293bdbbb839ce51d6c5f570fc2595e Mon Sep 17 00:00:00 2001 From: Austin Date: Sat, 13 Nov 2021 00:21:59 -0500 Subject: [PATCH] 2fa release --- globals/config.php | 1 - globals/functions.php | 2 +- html/settings/index.php | 7 +------ html_api/settings/index.php | 6 +----- html_api/settings/twofactor/activate.php | 5 ----- html_api/settings/twofactor/disable.php | 5 ----- html_api/settings/twofactor/qr.php | 5 ----- 7 files changed, 3 insertions(+), 28 deletions(-) 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 = <<