summaryrefslogtreecommitdiff
path: root/app/Controller/BaseController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-01 21:35:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-01 21:35:22 -0400
commit523e0aad7ea6682f310fc26e80633344f414de7a (patch)
treeb67c38e0b177fb354a2d121755653c8f4e00009f /app/Controller/BaseController.php
parentc50255813b1f2de3709b17492d32c9e4ce280236 (diff)
Raise exception for webhook token verification
Diffstat (limited to 'app/Controller/BaseController.php')
-rw-r--r--app/Controller/BaseController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controller/BaseController.php b/app/Controller/BaseController.php
index 5f6976ad..ae2dc006 100644
--- a/app/Controller/BaseController.php
+++ b/app/Controller/BaseController.php
@@ -34,7 +34,7 @@ abstract class BaseController extends Base
protected function checkWebhookToken()
{
if ($this->configModel->get('webhook_token') !== $this->request->getStringParam('token')) {
- $this->response->text('Not Authorized', 401);
+ throw AccessForbiddenException::getInstance()->withoutLayout();
}
}