CSRF / Logout

This commit is contained in:
epriestley
2011-01-30 18:52:29 -08:00
parent 58d1506499
commit 29f7219a49
26 changed files with 152 additions and 7 deletions

View File

@@ -26,6 +26,9 @@ class PhabricatorConduitConsoleController
}
public function processRequest() {
$request = $this->getRequest();
$methods = $this->getAllMethods();
if (empty($methods[$this->method])) {
$this->method = key($methods);
@@ -55,6 +58,7 @@ class PhabricatorConduitConsoleController
$form = new AphrontFormView();
$form
->setUser($request->getUser())
->setAction('/api/'.$this->method)
->appendChild(
id(new AphrontFormStaticControl())