Only use API authentication (not session) when validating termination requests
This commit is contained in:
parent
15bebc6267
commit
9d822b6e8b
|
@ -57,13 +57,16 @@ class ProvisioningController extends Zend_Controller_Action
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete the Airtime Pro station's files from Amazon S3
|
* Delete the Airtime Pro station's files from Amazon S3
|
||||||
|
*
|
||||||
|
* FIXME: When we deploy this next time, we should ensure that
|
||||||
|
* this function can only be accessed with POST requests!
|
||||||
*/
|
*/
|
||||||
public function terminateAction()
|
public function terminateAction()
|
||||||
{
|
{
|
||||||
$this->view->layout()->disableLayout();
|
$this->view->layout()->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender(true);
|
$this->_helper->viewRenderer->setNoRender(true);
|
||||||
|
|
||||||
if (!RestAuth::verifyAuth(true, true, $this)) {
|
if (!RestAuth::verifyAuth(true, false, $this)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue