Commit 223b857d authored by William Paul Liggett's avatar William Paul Liggett

Updated the admin page.

parent 584629b8
......@@ -27,8 +27,8 @@
// POST: Confirms if the administrative password is accurate after the <form> has been submitted.
if($_SERVER['REQUEST_METHOD'] === "POST") {
// Sets the $ov_admin_password_hash variable.
require_once "../../../../protected_site_configs/junktext.com/openvigilance_admin_password.php";
// Sets the `$ov_admin_username' and the `$ov_admin_password_hash' variables.
require_once "../../../../protected_site_configs/junktext.com/openvigilance_admin_account.php";
$error_msg = "";
......@@ -36,7 +36,7 @@
$submitted_password = htmlspecialchars($_POST['password']);
// Determines if the login was valid or not.
if($submitted_username !== "ov_admin") {
if($submitted_username !== $ov_admin_username) {
$error_msg = "Error: The username is not valid on this system.";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment