diff --git a/auth.php b/auth.php index db6fada..df144a8 100644 --- a/auth.php +++ b/auth.php @@ -15,6 +15,7 @@ $realm = 'GPS Tracker'; if (empty($_SERVER['PHP_AUTH_DIGEST'])) { header('HTTP/1.1 401 Unauthorized'); header('WWW-Authenticate: Digest realm="'.$realm. + '",qop="auth",nonce="'.uniqid().'",opaque="'.md5($realm).'"'); die('Authentication failed.'); }