mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-13 04:04:12 +02:00
[feature/auth-refactor] Check that providers implement auth interface
PHPBB3-9734
This commit is contained in:
@@ -563,6 +563,12 @@ 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)
|
||||
|
Reference in New Issue
Block a user