修改验证码为4位数字

This commit is contained in:
zhangwenjian committed 2020-10-17 18:54:40 +08:00
1 parent 8ef816c2a9
commit 93feb4779e
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ func DriverStringFunc() (id, b64s string, err error) {
func DriverDigitFunc() (id, b64s string, err error) {
e := configJsonBody{}
e.Id = uuid.New().String()
e.DriverDigit = base64Captcha.DefaultDriverDigit
e.DriverDigit = base64Captcha.NewDriverDigit(80, 240, 4, 0.7, 80)
driver := e.DriverDigit
cap := base64Captcha.NewCaptcha(driver, store)
return cap.Generate()