1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/12352] Revert to db auth provider if default does not exist

This will make sure that we will not encounter a non-existing auth provider.
We will revert to the default db auth provider if the one set in the config
does not exist in our auth provider collection.

PHPBB3-12352
This commit is contained in:
Marc Alexander
2014-05-01 14:23:39 +02:00
parent 68f59defb0
commit ed1d4fe4a0
4 changed files with 32 additions and 4 deletions

View File

@@ -96,6 +96,10 @@ class phpbb_session_testable_factory
'auth.provider.db',
new phpbb_mock_auth_provider()
);
$phpbb_container->set(
'auth.provider_collection',
array('auth.provider.db' => $phpbb_container->get('auth.provider.db'))
);
$session = new phpbb_mock_session_testable;
return $session;