Differential D15604 Diff 37609 src/applications/people/controller/PhabricatorPeopleApproveController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleApproveController.php
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
->setSubject('[Phabricator] '.$title) | ->setSubject('[Phabricator] '.$title) | ||||
->setForceDelivery(true) | ->setForceDelivery(true) | ||||
->setBody($body) | ->setBody($body) | ||||
->saveAndSend(); | ->saveAndSend(); | ||||
return id(new AphrontRedirectResponse())->setURI($done_uri); | return id(new AphrontRedirectResponse())->setURI($done_uri); | ||||
} | } | ||||
$dialog = id(new AphrontDialogView()) | return $this->newDialog() | ||||
->setUser($admin) | |||||
->setTitle(pht('Confirm Approval')) | ->setTitle(pht('Confirm Approval')) | ||||
->appendChild( | ->appendChild( | ||||
pht( | pht( | ||||
'Allow %s to access this Phabricator install?', | 'Allow %s to access this Phabricator install?', | ||||
phutil_tag('strong', array(), $user->getUsername()))) | phutil_tag('strong', array(), $user->getUsername()))) | ||||
->addCancelButton($done_uri) | ->addCancelButton($done_uri) | ||||
->addSubmitButton(pht('Approve Account')); | ->addSubmitButton(pht('Approve Account')); | ||||
return id(new AphrontDialogResponse())->setDialog($dialog); | |||||
} | } | ||||
} | } |