From a5a3fb92888b8885bc421ccec67bade64877f706 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 25 Mar 2022 13:21:29 +0800 Subject: [PATCH] fix(web/captcha): set chars and length --- web/app/controllers/captcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/controllers/captcha.php b/web/app/controllers/captcha.php index 2f3aede..bc49e60 100644 --- a/web/app/controllers/captcha.php +++ b/web/app/controllers/captcha.php @@ -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();