1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Controller/CaptchaController.php
2016-07-23 14:11:39 +02:00

29 lines
558 B
PHP

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