Differential D15829 Diff 38138 src/applications/diffusion/controller/DiffusionRepositoryCreateController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryCreateController.php
Show First 20 Lines • Show All 504 Lines • ▼ Show 20 Lines | /* -( Page: Authentication )----------------------------------------------- */ | ||||
public function buildAuthPage() { | public function buildAuthPage() { | ||||
return id(new PHUIFormPageView()) | return id(new PHUIFormPageView()) | ||||
->setPageName(pht('Authentication')) | ->setPageName(pht('Authentication')) | ||||
->setUser($this->getRequest()->getUser()) | ->setUser($this->getRequest()->getUser()) | ||||
->setAdjustFormPageCallback(array($this, 'adjustAuthPage')) | ->setAdjustFormPageCallback(array($this, 'adjustAuthPage')) | ||||
->addControl( | ->addControl( | ||||
id(new PassphraseCredentialControl()) | id(new PassphraseCredentialControl()) | ||||
->setViewer($this->getViewer()) | |||||
->setName('credential')); | ->setName('credential')); | ||||
} | } | ||||
public function adjustAuthPage($page) { | public function adjustAuthPage($page) { | ||||
$form = $page->getForm(); | $form = $page->getForm(); | ||||
if ($this->getRepository()) { | if ($this->getRepository()) { | ||||
▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines |