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
 	theCap := cap{
73
 	theCap := cap{
74
 		Phone:   phone,
74
 		Phone:   phone,
75
 		Captcha: capEngine.Random(6, phone),
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
 	c.capList[phone] = theCap
79
 	c.capList[phone] = theCap