diff --git a/libs/session.php b/libs/session.php index a920687..0e5bfcb 100644 --- a/libs/session.php +++ b/libs/session.php @@ -16,14 +16,16 @@ if (isset($_POST['submit_pass']) && $_POST['pass']) { $passwordInForm = $_POST['pass']; if ($passwordInForm == $passwordInConfig) { - $_SESSION['password'] = $passwordInForm; + # TODO: Remove this legacy auth method completely + # $_SESSION['password'] = $passwordInForm; saveLogin(); } elseif ($isCodeValid = verifyTOTP( $config['totp_secret'], $passwordInForm, intval($config['totp_digits']) )) { - $_SESSION['password'] = 'valid_totp'; + # TODO: Remove this legacy auth method completely + # $_SESSION['password'] = 'valid_totp'; saveLogin(); } else { $error = 'Incorrect Password'; diff --git a/partials/header.php b/partials/header.php index c5f03e9..c76a9e6 100644 --- a/partials/header.php +++ b/partials/header.php @@ -1,7 +1,7 @@ @@ -9,7 +9,7 @@ $profile = getTwtsFromTwtxtString($config['public_txt_url']); - + @@ -43,8 +43,7 @@ $profile = getTwtsFromTwtxtString($config['public_txt_url']);