summaryrefslogtreecommitdiff
path: root/app/Controller/Captcha.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-15 18:31:47 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-15 18:31:47 -0400
commit67b836164997527b91452b19adbcb8aa3c5decf1 (patch)
treeb5876d311912e97b0592c7e208639f7b52813a75 /app/Controller/Captcha.php
parent108e867605dbc7ece4cbcbecc89a674e9c154a9b (diff)
Refactoring: added controlled middleware and changed response class
Diffstat (limited to 'app/Controller/Captcha.php')
-rw-r--r--app/Controller/Captcha.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Captcha.php b/app/Controller/Captcha.php
index fcf081ea..fb9d6fe3 100644
--- a/app/Controller/Captcha.php
+++ b/app/Controller/Captcha.php
@@ -10,7 +10,7 @@ use Gregwar\Captcha\CaptchaBuilder;
* @package controller
* @author Frederic Guillot
*/
-class Captcha extends Base
+class Captcha extends BaseController
{
/**
* Display captcha image
@@ -19,7 +19,7 @@ class Captcha extends Base
*/
public function image()
{
- $this->response->contentType('image/jpeg');
+ $this->response->withContentType('image/jpeg');
$builder = new CaptchaBuilder;
$builder->build();