mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-17 21:10:00 +02:00
[feature/auth-refactor] Refactor session for new auth interface
Refactors phpbb_session to use the new auth interface. PHPBB3-9734
This commit is contained in:
parent
2445766b92
commit
f4def220ce
@ -568,12 +568,12 @@ class phpbb_session
|
|||||||
}
|
}
|
||||||
|
|
||||||
$method = basename(trim($config['auth_method']));
|
$method = basename(trim($config['auth_method']));
|
||||||
include_once($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx);
|
|
||||||
|
|
||||||
$method = 'autologin_' . $method;
|
$class = 'phpbb_auth_provider_' . $method;
|
||||||
if (function_exists($method))
|
if (class_exists($class))
|
||||||
{
|
{
|
||||||
$this->data = $method();
|
$provider = new $class();
|
||||||
|
$this->data = $class->autologin();
|
||||||
|
|
||||||
if (sizeof($this->data))
|
if (sizeof($this->data))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user