修改验证码为4位数字
This commit is contained in:
1 parent
8ef816c2a9
commit
93feb4779e
1 file changed
+1
-1
@@ -33,7 +33,7 @@ func DriverStringFunc() (id, b64s string, err error) {
|
|||||||
func DriverDigitFunc() (id, b64s string, err error) {
|
func DriverDigitFunc() (id, b64s string, err error) {
|
||||||
e := configJsonBody{}
|
e := configJsonBody{}
|
||||||
e.Id = uuid.New().String()
|
e.Id = uuid.New().String()
|
||||||
e.DriverDigit = base64Captcha.DefaultDriverDigit
|
e.DriverDigit = base64Captcha.NewDriverDigit(80, 240, 4, 0.7, 80)
|
||||||
driver := e.DriverDigit
|
driver := e.DriverDigit
|
||||||
cap := base64Captcha.NewCaptcha(driver, store)
|
cap := base64Captcha.NewCaptcha(driver, store)
|
||||||
return cap.Generate()
|
return cap.Generate()
|
||||||
|
|||||||
Reference in new issue
Block a user