Updates: Allow automatic display of keys/Copy button ack
This commit is contained in:
@@ -19,13 +19,7 @@ class Status extends Action
|
||||
|
||||
public function execute()
|
||||
{
|
||||
$formKey = $this->getRequest()->getParam('form_key');
|
||||
if (!$formKey || $formKey !== $this->_formKey->getFormKey()) {
|
||||
return $this->resultFactory->create(ResultFactory::TYPE_JSON)->setData([
|
||||
'error' => true,
|
||||
'message' => 'Invalid form key.',
|
||||
])->setHttpResponseCode(403);
|
||||
}
|
||||
// ACL + admin session protect this; form_key in query was breaking AJAX (encoding / secret key).
|
||||
$resultJson = $this->resultFactory->create(ResultFactory::TYPE_JSON);
|
||||
$resultJson->setData($this->tunnelStatus->getStatus());
|
||||
return $resultJson;
|
||||
|
||||
Reference in New Issue
Block a user