mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-11 09:18:07 +08:00
32 lines
676 B
PHP
32 lines
676 B
PHP
|
<?php
|
||
|
|
||
|
namespace RainLoop\SabreDAV;
|
||
|
|
||
|
class AuthBasic extends \Sabre\DAV\Auth\Backend\AbstractBasic
|
||
|
{
|
||
|
/**
|
||
|
* @var \RainLoop\Providers\PersonalAddressBook
|
||
|
*/
|
||
|
private $oPersonalAddressBook;
|
||
|
|
||
|
/**
|
||
|
* @param \RainLoop\Providers\PersonalAddressBook $oPersonalAddressBook
|
||
|
*/
|
||
|
public function __construct($oPersonalAddressBook)
|
||
|
{
|
||
|
$this->oPersonalAddressBook = $oPersonalAddressBook;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @param string $sUserName
|
||
|
* @param string $sPassword
|
||
|
*
|
||
|
* @return bool
|
||
|
*/
|
||
|
protected function validateUserPass($sUserName, $sPassword)
|
||
|
{
|
||
|
$this->currentUser = $sUserName;
|
||
|
return true; // TODO
|
||
|
}
|
||
|
}
|