|
@@ -13,16 +13,11 @@ import (
|
|
|
|
|
|
// 图形验证码大小
|
|
// 图形验证码大小
|
|
const (
|
|
const (
|
|
- dx = 200
|
|
|
|
- dy = 80
|
|
|
|
- fontSize = 75
|
|
|
|
- Rn = 1
|
|
|
|
- // Default number of digits in captcha solution.
|
|
|
|
- DefaultLen = 6
|
|
|
|
- // The number of captchas created that triggers garbage collection used
|
|
|
|
- // by default store.
|
|
|
|
|
|
+ dx = 200
|
|
|
|
+ dy = 80
|
|
|
|
+ fontSize = 75
|
|
|
|
+ Rn = 1
|
|
CollectNum = 100
|
|
CollectNum = 100
|
|
- // Expiration time of captchas used by default store.
|
|
|
|
Expiration = 10 * time.Minute
|
|
Expiration = 10 * time.Minute
|
|
)
|
|
)
|
|
|
|
|