private function renderNotUnlinkableErrorDialog(PhabricatorAuthProvider $provider) { $dialog = id(new AphrontDialogView())->setUser($this->getRequest()->getUser())->setTitle(pht('Permanent Account Link'))->appendChild(pht('You can not unlink this account because the administrator has ' . 'configured Phabricator to make links to %s accounts permanent.', $provider->getProviderName()))->addCancelButton($this->getDoneURI()); return id(new AphrontDialogResponse())->setDialog($dialog); }
public function buildProviderErrorResponse(PhabricatorAuthProvider $provider, $message) { $message = pht('Authentication provider ("%s") encountered an error during login. %s', $provider->getProviderName(), $message); return $this->renderError($message); }