mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 16:21:52 +00:00
fix(web/captcha): set chars and length
This commit is contained in:
parent
65cf072825
commit
a5a3fb9288
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user