Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthStartController.php
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | if (!$providers) { | ||||
// If this is a fresh install, let the user register their admin | // If this is a fresh install, let the user register their admin | ||||
// account. | // account. | ||||
return id(new AphrontRedirectResponse()) | return id(new AphrontRedirectResponse()) | ||||
->setURI($this->getApplicationURI('/register/')); | ->setURI($this->getApplicationURI('/register/')); | ||||
} | } | ||||
return $this->renderError( | return $this->renderError( | ||||
pht( | pht( | ||||
'This Phabricator install is not configured with any enabled '. | 'This server is not configured with any enabled authentication '. | ||||
'authentication providers which can be used to log in. If you '. | 'providers which can be used to log in. If you have accidentally '. | ||||
'have accidentally locked yourself out by disabling all providers, '. | 'locked yourself out by disabling all providers, you can use `%s` '. | ||||
'you can use `%s` to recover access to an account.', | 'to recover access to an account.', | ||||
'phabricator/bin/auth recover <username>')); | './bin/auth recover <username>')); | ||||
} | } | ||||
$next_uri = $request->getStr('next'); | $next_uri = $request->getStr('next'); | ||||
if (!strlen($next_uri)) { | if (!strlen($next_uri)) { | ||||
if ($this->getDelegatingController()) { | if ($this->getDelegatingController()) { | ||||
// Only set a next URI from the request path if this controller was | // Only set a next URI from the request path if this controller was | ||||
// delegated to, which happens when a user tries to view a page which | // delegated to, which happens when a user tries to view a page which | ||||
// requires them to login. | // requires them to login. | ||||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |