Fixed Connected Providers missing from "login/login" route

DragonByte Tech

Well-known member
Affected version
2.0.2
If you access the login form from login/ it works fine, but if you access it from login/login it doesn't.

Proposed fix: In src/XF/Pub/Controller/Login.php around line 42, replace the isPost block with:
PHP:
        if (!$this->isPost())
        {
            $providers = $this->repository('XF:ConnectedAccount')->getUsableProviders(false);
            $viewParams = [
                'providers' => $providers
            ];
            return $this->view('XF:Login\Form', 'login', $viewParams);
        }


Fillip
 
Back
Top Bottom