xref: /plugin/davcal/authBackendDokuwiki.php (revision 185e2535914616e98630b0777145a3e6d5c8d81b)
1<?php
2
3/**
4 * DokuWiki SabreDAV Auth Backend
5 *
6 * Check a user ID / password combo against DokuWiki's auth system
7 */
8
9class DokuWikiSabreAuthBackend extends Sabre\DAV\Auth\Backend\AbstractBasic
10{
11    protected function validateUserPass($username, $password)
12    {
13        global $auth;
14        return $auth->checkPass($username, $password);
15    }
16}
17