-
Notifications
You must be signed in to change notification settings - Fork 16
How to use image captcha
Eric Richer edited this page Dec 4, 2020
·
1 revision
Copy font file to the font dir and create the images/tmp directory first and/or adjust to your needs:
'form_captcha_options' => [
'class' => 'image',
'options' => [
'font' => __DIR__.'/../../public/fonts/Vera.ttf',
'imgDir' => __DIR__.'/../../public/images/tmp',
'imgUrl'=>'/images/tmp/',
'wordLen' => 5,
'fontsize'=>26,
'height'=>60,
'width'=>200,
'dotNoiseLevel' => 50,
'lineNoiseLevel' => 6,
'Messages' => ['badCaptcha' => 'Wrong Antispam-Code'],
'expiration' => 300,
'timeout' => 300,
],
],