Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/PhabricatorAuthStartController.php
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Lines | private function processConduitRequest() { | ||||
// effort to give them a comprehensible error message. | // effort to give them a comprehensible error message. | ||||
$request_path = $this->getRequest()->getPath(); | $request_path = $this->getRequest()->getPath(); | ||||
$conduit_path = '/api/<method>'; | $conduit_path = '/api/<method>'; | ||||
$example_path = '/api/conduit.ping'; | $example_path = '/api/conduit.ping'; | ||||
$message = pht( | $message = pht( | ||||
'ERROR: You are making a Conduit API request to "%s", but the correct '. | 'ERROR: You are making a Conduit API request to "%s", but the correct '. | ||||
'HTTP request path to use in order to access a COnduit method is "%s" '. | 'HTTP request path to use in order to access a Conduit method is "%s" '. | ||||
'(for example, "%s"). Check your configuration.', | '(for example, "%s"). Check your configuration.', | ||||
$request_path, | $request_path, | ||||
$conduit_path, | $conduit_path, | ||||
$example_path); | $example_path); | ||||
return id(new AphrontPlainTextResponse())->setContent($message); | return id(new AphrontPlainTextResponse())->setContent($message); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |