Send old login code to the bottom of the sea
Summary: Ref T1536. This is extremely reachable and changes the login code to the new stuff. Notes: - I've hard-disabled password registration since I want installs to explicitly flip it on via config if they want it. New installs will get it by default in the future, but old installs shouldn't have their auth options change. - Google doesn't let us change the redirect URI, so keep the old one working. - We need to keep a bit of LDAP around for now for LDAP import. - **Facebook:** This causes substantive changes in what login code is executed. Test Plan: - Logged in / logged out / registered, hit new flows. - Logged in with google. - Verified no password registration by default. Reviewers: btrahan, chad Reviewed By: chad CC: wez, nh, aran, mbishopim3 Maniphest Tasks: T1536 Differential Revision: https://secure.phabricator.com/D6222
This commit is contained in:
@@ -100,7 +100,9 @@ abstract class PhabricatorController extends AphrontController {
|
||||
}
|
||||
|
||||
if ($this->shouldRequireLogin() && !$user->getPHID()) {
|
||||
$login_controller = new PhabricatorLoginController($request);
|
||||
$login_controller = new PhabricatorAuthStartController($request);
|
||||
$login_controller->setCurrentApplication(
|
||||
PhabricatorApplication::getByClass('PhabricatorApplicationAuth'));
|
||||
return $this->delegateToController($login_controller);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user