Update lib/base.php

authentification fix (Lightning CalDAV etc.)