Hack base.php to make Basic Auth work