Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthStartController.php
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | private function tryAutoLogin(array $providers) { | ||||
$auto_uri = $provider->getAutoLoginURI($request); | $auto_uri = $provider->getAutoLoginURI($request); | ||||
return id(new AphrontRedirectResponse()) | return id(new AphrontRedirectResponse()) | ||||
->setIsExternal(true) | ->setIsExternal(true) | ||||
->setURI($auto_uri); | ->setURI($auto_uri); | ||||
} | } | ||||
private function newCustomStartMessage() { | |||||
$viewer = $this->getViewer(); | |||||
$text = PhabricatorAuthMessage::loadMessageText( | |||||
$viewer, | |||||
PhabricatorAuthLoginMessageType::MESSAGEKEY); | |||||
if (!strlen($text)) { | |||||
return null; | |||||
} | |||||
$remarkup_view = new PHUIRemarkupView($viewer, $text); | |||||
return phutil_tag( | |||||
'div', | |||||
array( | |||||
'class' => 'auth-custom-message', | |||||
), | |||||
$remarkup_view); | |||||
} | |||||
private function newEmailLoginView(array $configs) { | private function newEmailLoginView(array $configs) { | ||||
assert_instances_of($configs, 'PhabricatorAuthProviderConfig'); | assert_instances_of($configs, 'PhabricatorAuthProviderConfig'); | ||||
// Check if password auth is enabled. If it is, the password login form | // Check if password auth is enabled. If it is, the password login form | ||||
// renders a "Forgot password?" link, so we don't need to provide a | // renders a "Forgot password?" link, so we don't need to provide a | ||||
// supplemental link. | // supplemental link. | ||||
$has_password = false; | $has_password = false; | ||||
Show All 32 Lines |