mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
29 lines
517 B
PHP
29 lines
517 B
PHP
<?php
|
|
|
|
namespace Kanboard\Controller;
|
|
|
|
use Gregwar\Captcha\CaptchaBuilder;
|
|
|
|
/**
|
|
* Captcha Controller
|
|
*
|
|
* @package controller
|
|
* @author Frederic Guillot
|
|
*/
|
|
class Captcha extends Base
|
|
{
|
|
/**
|
|
* Display captcha image
|
|
*
|
|
* @access public
|
|
*/
|
|
public function image()
|
|
{
|
|
$this->response->contentType('image/jpeg');
|
|
|
|
$builder = new CaptchaBuilder;
|
|
$builder->build();
|
|
$this->sessionStorage->captcha = $builder->getPhrase();
|
|
$builder->output();
|
|
}
|
|
}
|