Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthStartController.php
| Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | if ($are_buttons) { | ||||
| $out[] = phutil_tag( | $out[] = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phabricator-login-buttons', | 'class' => 'phabricator-login-buttons', | ||||
| ), | ), | ||||
| $button_columns); | $button_columns); | ||||
| } | } | ||||
| $login_message = PhabricatorEnv::getEnvConfig('auth.login-message'); | $handlers = PhabricatorAuthLoginHandler::getAllHandlers(); | ||||
| $login_message = phutil_safe_html($login_message); | |||||
| $delegating_controller = $this->getDelegatingController(); | |||||
| $header = array(); | |||||
| foreach ($handlers as $handler) { | |||||
| $handler = clone $handler; | |||||
| $handler->setRequest($request); | |||||
| if ($delegating_controller) { | |||||
| $handler->setDelegatingController($delegating_controller); | |||||
| } | |||||
| $header[] = $handler->getAuthLoginHeaderContent(); | |||||
| } | |||||
| $invite_message = null; | $invite_message = null; | ||||
| if ($invite) { | if ($invite) { | ||||
| $invite_message = $this->renderInviteHeader($invite); | $invite_message = $this->renderInviteHeader($invite); | ||||
| } | } | ||||
| $crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
| $crumbs->addTextCrumb(pht('Login')); | $crumbs->addTextCrumb(pht('Login')); | ||||
| $crumbs->setBorder(true); | $crumbs->setBorder(true); | ||||
| return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
| array( | array( | ||||
| $crumbs, | $crumbs, | ||||
| $login_message, | $header, | ||||
| $invite_message, | $invite_message, | ||||
| $out, | $out, | ||||
| ), | ), | ||||
| array( | array( | ||||
| 'title' => pht('Login to Phabricator'), | 'title' => pht('Login to Phabricator'), | ||||
| )); | )); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||