mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
[feature/oauth] Temporary workaround for only allowing one auth provider
PHPBB3-11673
This commit is contained in:
parent
0f292f70c7
commit
b67032fb02
1 changed files with 9 additions and 0 deletions
|
@ -116,6 +116,15 @@ class phpbb_auth_provider_oauth extends phpbb_auth_provider_base
|
||||||
*/
|
*/
|
||||||
public function login($username, $password)
|
public function login($username, $password)
|
||||||
{
|
{
|
||||||
|
// Temporary workaround for only having one authentication provider available
|
||||||
|
if ($username && $password)
|
||||||
|
{
|
||||||
|
// TODO: Remove before merging
|
||||||
|
global $phpbb_root_path, $phpEx;
|
||||||
|
$provider = new phpbb_auth_provider_db($this->db, $this->config, $this->request, $this->user, $phpbb_root_path, $phpEx);
|
||||||
|
return $provider->login($username, $password);
|
||||||
|
}
|
||||||
|
|
||||||
// Requst the name of the OAuth service
|
// Requst the name of the OAuth service
|
||||||
$service_name = $this->request->variable('oauth_service', '', false, phpbb_request_interface::POST);
|
$service_name = $this->request->variable('oauth_service', '', false, phpbb_request_interface::POST);
|
||||||
$service_name = strtolower($service_name);
|
$service_name = strtolower($service_name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue