Rename controllers

This commit is contained in:
Frederic Guillot
2016-05-28 11:31:54 -04:00
parent 82b5b491be
commit ab48a09f0d
41 changed files with 124 additions and 124 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Kanboard\Controller;
use Gregwar\Captcha\CaptchaBuilder;
/**
* Captcha Controller
*
* @package Kanboard\Controller
* @author Frederic Guillot
*/
class CaptchaController extends BaseController
{
/**
* Display captcha image
*
* @access public
*/
public function image()
{
$this->response->withContentType('image/jpeg')->send();
$builder = new CaptchaBuilder;
$builder->build();
$this->sessionStorage->captcha = $builder->getPhrase();
$builder->output();
}
}