fix(web/captcha): set chars and length

This commit is contained in:
Baoshuo Ren 2022-03-25 13:21:29 +08:00
parent 65cf072825
commit a5a3fb9288
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -3,7 +3,7 @@
use Gregwar\Captcha\PhraseBuilder;
use Gregwar\Captcha\CaptchaBuilder;
$builder = new CaptchaBuilder;
$builder = new CaptchaBuilder(null, new PhraseBuilder(4, "2345678abcdefhkmnrstuxz"));
$builder->build();
$_SESSION['phrase'] = $builder->getPhrase();