From a3e37866e6ee42012b4c4f0b3de36000be5d23bd Mon Sep 17 00:00:00 2001 From: Joe Haig Date: Sun, 29 May 2016 17:45:07 +0100 Subject: [PATCH] Clean up --- includes/authenticate.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/includes/authenticate.php b/includes/authenticate.php index a69a5ced..8a729679 100644 --- a/includes/authenticate.php +++ b/includes/authenticate.php @@ -1,11 +1,7 @@ "admin"); -$valid_users = array_keys($valid_passwords); - $user = $_SERVER['PHP_AUTH_USER']; $pass = $_SERVER['PHP_AUTH_PW']; -//$validated = (in_array($user, $valid_users)) && ($pass == $valid_passwords[$user]); $validated = ($user == $config['admin_user']) && password_verify($pass, $config['admin_pass']); if (!$validated) {