Raise exception for webhook token verification

This commit is contained in:
Frederic Guillot 2016-06-01 21:35:22 -04:00
parent c50255813b
commit 523e0aad7e
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}