1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-16 09:16:10 +02:00

[feature/auth-refactor] Have a base auth class

PHPBB3-9734
This commit is contained in:
Joseph Warner
2013-07-11 10:54:55 -04:00
parent 2fcae1ca16
commit 3c11052fb3
4 changed files with 75 additions and 83 deletions

View File

@@ -0,0 +1,69 @@
<?php
/**
*
* @package auth
* @copyright (c) 2013 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* Base authentication provider class that all other providers must implement.
*
* @package auth
*/
abstract class phpbb_auth_provider_base implements phpbb_auth_provider_interface
{
/**
* {@inheritdoc}
*/
public function init()
{
return;
}
/**
* {@inheritdoc}
*/
abstract public function login($username, $password);
/**
* {@inheritdoc}
*/
public function autologin()
{
return;
}
/**
* {@inheritdoc}
*/
public function acp($new)
{
return;
}
/**
* {@inheritdoc}
*/
public function logout($data, $new_session)
{
return;
}
/**
* {@inheritdoc}
*/
public function validate_session($user)
{
return;
}
}