From 5651cc66dfa3922814984f9c6169689a2dc9b09d Mon Sep 17 00:00:00 2001 From: joshdentremont Date: Thu, 16 Jan 2025 16:08:56 -0400 Subject: [PATCH] Update auth() in functions.php --- admin/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/functions.php b/admin/functions.php index 9622437..c206d5b 100644 --- a/admin/functions.php +++ b/admin/functions.php @@ -181,6 +181,9 @@ function auth(){ $conn->close(); if (!isset($data) || !isset($users[$data['username']])) { + header('HTTP/1.1 401 Unauthorized'); + header('WWW-Authenticate: Digest realm="' . $realm . + '",qop="auth",nonce="' . uniqid() . '",opaque="' . md5($realm) . '"'); die('Wrong Credentials! Please enter your login credentials to login.'); }