mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/auth-refactor] Remove invalid providers from acp select
PHPBB3-9734
This commit is contained in:
parent
e2435f25d9
commit
9c0495664d
1 changed files with 4 additions and 6 deletions
|
@ -563,12 +563,6 @@ class acp_board
|
|||
if (array_key_exists('auth.provider.' . $method, $auth_providers))
|
||||
{
|
||||
$provider = $auth_providers['auth.provider.' . $method];
|
||||
|
||||
if (!($provider instanceof phpbb_auth_provider_interface))
|
||||
{
|
||||
throw new \RuntimeException($provider . ' must implement phpbb_auth_provider_interface');
|
||||
}
|
||||
|
||||
if ($error = $provider->init())
|
||||
{
|
||||
foreach ($old_auth_config as $config_name => $config_value)
|
||||
|
@ -686,6 +680,10 @@ class acp_board
|
|||
|
||||
foreach($auth_providers as $key => $value)
|
||||
{
|
||||
if (!($provider instanceof phpbb_auth_provider_interface))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$auth_plugins[] = str_replace('auth.provider.', '', $key);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue