broken atm cause i've been interchably passing around repo.git and
[gwvp.git] / gwvplib / gwvpauth.php
index 086af98..e06fdde 100644 (file)
@@ -37,6 +37,7 @@ function gwvp_AuthCallMe()
 
 function gwvp_AskForBasicAuth()
 {
+       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');
@@ -203,7 +204,13 @@ function gwvp_checkBasicAuthLogin()
                $pass = $_SERVER["PHP_AUTH_PW"];
        } else return false;
        
-       return gwvp_authUserPass($user, $pass);
+       error_log("passing basic auth for $user, $pass to backend");
+       $auth = gwvp_authUserPass($user, $pass);
+       if($auth !== false) {
+               error_log("auth passes");
+       }
+       
+       return $auth;
 }
 
 function gwvp_IsLoggedIn()