Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: captcha factory missing in constructor of auth/provider/oneall.php #76

Open
RonaldKools opened this issue Sep 9, 2020 · 0 comments

Comments

@RonaldKools
Copy link

RonaldKools commented Sep 9, 2020

PhpBB3.3.x has some extra parameters in the constructor of phpbb/auth/provider/db.php:

public function __construct(factory $captcha_factory, config $config, driver_interface $db, manager $passwords_manager, request_interface $request, user $user, $phpbb_root_path, $php_ext)

However, the captcha factory is missing in the constructor of /auth/provider/oneall.php:

public function __construct(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\passwords\manager $passwords_manager, \phpbb\request\request $request, \phpbb\user $user, \Symfony\Component\DependencyInjection\ContainerInterface $phpbb_container, $phpbb_root_path, $php_ext)

It extends db.php, causing a 500 error when you get the spam protection captcha for incorrectly logging in for 3 times:

PHP Fatal error: Uncaught Error: Call to a member function get_instance() on null in /var/www/html/phpBB3.3.1/phpbb/auth/provider/db.php:179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant