X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvpauth.php;fp=gwvplib%2Fgwvpauth.php;h=0cd3212a9fd5c7ff40fab74cc1533361f1dc1c4a;hp=2807f5657717d58ff782f4403e1b9d1623ee3285;hb=1283f0d8043b7aafc4edd1c4627d465a92355a49;hpb=f7748ec924c30b4472132dabcf318d3c420a1a15 diff --git a/gwvplib/gwvpauth.php b/gwvplib/gwvpauth.php index 2807f56..0cd3212 100644 --- a/gwvplib/gwvpauth.php +++ b/gwvplib/gwvpauth.php @@ -37,11 +37,8 @@ function gwvp_AuthCallMe() function gwvp_AskForBasicAuth() { - error_log("AUTH: asking for basic auth"); - if(!isset($_SERVER["PHP_AUTH_USER"])) { - header('WWW-Authenticate: Basic realm="GIT Repo"'); - header('HTTP/1.1 401 Unauthorized'); - } else return; + header('WWW-Authenticate: Basic realm="GIT Repo"'); + header('HTTP/1.1 401 Unauthorized'); } // $levels is checked against $LOGIN_TYPE, levels can be either just "admin" or admin,user anon,user anon, etc.