feat : 将验证码改简单

This commit is contained in:
clay
2024-03-25 20:02:47 +08:00
parent 492f01a041
commit a910a70c85
7 changed files with 23 additions and 47 deletions

View File

@@ -34,7 +34,7 @@ public class CaptchaConfig {
//鱼眼 com.google.code.kaptcha.impl.FishEyeGimpy
//阴影 com.google.code.kaptcha.impl.ShadowGimpy
// properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_STRING,"123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ#$!@&%");
properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_STRING,"123456789#$@&%");
properties.setProperty(KAPTCHA_TEXTPRODUCER_CHAR_STRING,"1234567890");
properties.setProperty(KAPTCHA_OBSCURIFICATOR_IMPL, "com.google.code.kaptcha.impl.ShadowGimpy");
DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
Config config = new Config(properties);