mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +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\PhraseBuilder;
|
||||||
use Gregwar\Captcha\CaptchaBuilder;
|
use Gregwar\Captcha\CaptchaBuilder;
|
||||||
|
|
||||||
$builder = new CaptchaBuilder;
|
$builder = new CaptchaBuilder(null, new PhraseBuilder(4, "2345678abcdefhkmnrstuxz"));
|
||||||
$builder->build();
|
$builder->build();
|
||||||
$_SESSION['phrase'] = $builder->getPhrase();
|
$_SESSION['phrase'] = $builder->getPhrase();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user