Browse Source

change captcha default time

zjxpcyc 6 years ago
parent
commit
af4eff75a3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      utils/captcha.go

+ 1
- 1
utils/captcha.go View File

@@ -73,7 +73,7 @@ func (c *CaptchaEngine) SendCaptcha(phone string) {
73 73
 	theCap := cap{
74 74
 		Phone:   phone,
75 75
 		Captcha: capEngine.Random(6, phone),
76
-		Expire:  time.Now().Local().Add(1 * time.Minute),
76
+		Expire:  time.Now().Local().Add(3 * time.Minute),
77 77
 	}
78 78
 
79 79
 	c.capList[phone] = theCap