From 523e0aad7ea6682f310fc26e80633344f414de7a Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 1 Jun 2016 21:35:22 -0400 Subject: Raise exception for webhook token verification --- app/Controller/BaseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller') 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(); } } -- cgit v1.2.3