aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-07-11 14:54:00 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-07-11 14:54:52 -0400
commite2435f25d90913455e0b8ffd92fb0918cf6f376f (patch)
treed1d839be27b079e8ade66945add8aabb743c3c10 /phpBB/includes/session.php
parente674838d6951adb4df76195863df918f3b5852fd (diff)
downloadforums-e2435f25d90913455e0b8ffd92fb0918cf6f376f.tar
forums-e2435f25d90913455e0b8ffd92fb0918cf6f376f.tar.gz
forums-e2435f25d90913455e0b8ffd92fb0918cf6f376f.tar.bz2
forums-e2435f25d90913455e0b8ffd92fb0918cf6f376f.tar.xz
forums-e2435f25d90913455e0b8ffd92fb0918cf6f376f.zip
[feature/auth-refactor] Check that providers implement auth interface
PHPBB3-9734
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 66bf053f7d..e0585b1523 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -404,6 +404,12 @@ class phpbb_session
$method = basename(trim($config['auth_method']));
$provider = $phpbb_container->get('auth.provider.' . $method);
+
+ if (!($provider instanceof phpbb_auth_provider_interface))
+ {
+ throw new \RuntimeException($provider . ' must implement phpbb_auth_provider_interface');
+ }
+
$ret = $provider->validate_session($this->data);
if ($ret !== null && !$ret)
{