Differential D21784 Diff 51940 src/applications/diffusion/controller/DiffusionRepositoryURICredentialController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryURICredentialController.php
Show All 32 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$view_uri = $uri->getViewURI(); | $view_uri = $uri->getViewURI(); | ||||
$is_remove = ($request->getURIData('action') == 'remove'); | $is_remove = ($request->getURIData('action') == 'remove'); | ||||
if ($is_builtin) { | if ($is_builtin) { | ||||
return $this->newDialog() | return $this->newDialog() | ||||
->setTitle(pht('Builtin URIs Do Not Use Credentials')) | ->setTitle(pht('Builtin URIs Do Not Use Credentials')) | ||||
->appendParagraph( | ->appendParagraph( | ||||
pht( | pht( | ||||
'You can not set a credential for builtin URIs which Phabricator '. | 'You can not set a credential for builtin URIs which this '. | ||||
'hosts and serves. Phabricator does not fetch from these URIs or '. | 'server hosts. These URIs are not fetched from or pushed to, '. | ||||
'push to these URIs, and does not need credentials to '. | 'and credentials are not required to authenticate any '. | ||||
'authenticate any activity against them.')) | 'activity against them.')) | ||||
->addCancelButton($view_uri); | ->addCancelButton($view_uri); | ||||
} | } | ||||
if ($request->isFormPost()) { | if ($request->isFormPost()) { | ||||
$xactions = array(); | $xactions = array(); | ||||
if ($is_remove) { | if ($is_remove) { | ||||
$new_phid = null; | $new_phid = null; | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |