mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge remote-tracking branch 'Hardolaf/ticket/11813' into develop
* Hardolaf/ticket/11813: [ticket/11813] Change mock auth provider to implement base provider
This commit is contained in:
commit
ba3786d3b4
1 changed files with 2 additions and 32 deletions
|
@ -10,14 +10,9 @@
|
||||||
/**
|
/**
|
||||||
* Mock auth provider class with basic functions to help test sessions.
|
* Mock auth provider class with basic functions to help test sessions.
|
||||||
*/
|
*/
|
||||||
class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
|
class phpbb_mock_auth_provider extends phpbb_auth_provider_base
|
||||||
{
|
{
|
||||||
function init()
|
public function login($username, $password)
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function login($username, $password)
|
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'status' => "",
|
'status' => "",
|
||||||
|
@ -25,29 +20,4 @@ class phpbb_mock_auth_provider implements phpbb_auth_provider_interface
|
||||||
'user_row' => "",
|
'user_row' => "",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function autologin()
|
|
||||||
{
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
function acp()
|
|
||||||
{
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
function logout($data, $new_session)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function validate_session($user)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function get_acp_template($new_config)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue