{
error_log("AUTH: asking for basic auth");
if(!isset($_SERVER["PHP_AUTH_USER"])) {
- header('WWW-Authenticate: Basic realm="My Realm"');
- header('HTTP/1.0 401 Unauthorized');
+ header('WWW-Authenticate: Basic realm="GIT Repo"');
+ header('HTTP/1.1 401 Unauthorized');
} else return;
}
$auth = gwvp_authUserPass($user, $pass);
if($auth !== false) {
error_log("auth passes");
+ } else {
+ error_log("auth failes");
}
return $auth;