diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-11 14:54:00 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-07-11 14:54:52 -0400 |
commit | e2435f25d90913455e0b8ffd92fb0918cf6f376f (patch) | |
tree | d1d839be27b079e8ade66945add8aabb743c3c10 /phpBB/includes/session.php | |
parent | e674838d6951adb4df76195863df918f3b5852fd (diff) | |
download | forums-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.php | 6 |
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) { |