diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-06-01 21:35:22 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-06-01 21:35:22 -0400 |
commit | 523e0aad7ea6682f310fc26e80633344f414de7a (patch) | |
tree | b67c38e0b177fb354a2d121755653c8f4e00009f /app/Controller | |
parent | c50255813b1f2de3709b17492d32c9e4ce280236 (diff) |
Raise exception for webhook token verification
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/BaseController.php | 2 |
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(); } } |