Don't output any body, just the header. Devices won't show this anyway
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 9 Apr 2010 21:52:03 +0000 (17:52 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 9 Apr 2010 21:52:03 +0000 (17:52 -0400)
framework/Rpc/lib/Horde/Rpc/ActiveSync.php

index ee5ce4a..31447d9 100644 (file)
@@ -182,8 +182,7 @@ class Horde_Rpc_ActiveSync extends Horde_Rpc
         if (!$results && empty($this->_policykey)) {
             header('HTTP/1.1 401 Unauthorized');
             header('WWW-Authenticate: Basic realm="Horde RPC"');
-            echo 'Access denied. Username or password incorrect.';
-            // @TODO: Logging, once Rpc gets an actual logger.
+            $this->_logger->info('Access denied for user: ' . $user . '. Username or password incorrect.');
         }
 
         /* Successfully authenticated to backend, try to setup the backend */