forked from mirrors/easyappointments
Correct the captcha builer php issues.
This commit is contained in:
parent
f13b1a17c4
commit
1655b0df2d
1 changed files with 8 additions and 8 deletions
|
@ -36,14 +36,14 @@ class Captcha extends EA_Controller {
|
||||||
*/
|
*/
|
||||||
public function index()
|
public function index()
|
||||||
{
|
{
|
||||||
$builder = new CaptchaBuilder;
|
|
||||||
$builder->setDistortion(false);
|
$this->captcha_builder->setDistortion(false);
|
||||||
$builder->setMaxBehindLines(1);
|
$this->captcha_builder->setMaxBehindLines(1);
|
||||||
$builder->setMaxFrontLines(1);
|
$this->captcha_builder->setMaxFrontLines(1);
|
||||||
$builder->setBackgroundColor(255,255,255);
|
$this->captcha_builder->setBackgroundColor(255,255,255);
|
||||||
$builder->build();
|
$this->captcha_builder->build();
|
||||||
session(['captcha_phrase' => $builder->getPhrase()]);
|
session(['captcha_phrase' => $this->captcha_builder->getPhrase()]);
|
||||||
header('Content-type: image/jpeg');
|
header('Content-type: image/jpeg');
|
||||||
$builder->output();
|
$this->captcha_builder->output();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue