Browse Source

add captcha redis

liaoyongfu 3 years ago
parent
commit
0ed3b8c672
1 changed files with 2 additions and 0 deletions
  1. 2 0
      server/api/v1/sys_captcha.go

+ 2 - 0
server/api/v1/sys_captcha.go

@@ -8,6 +8,8 @@ import (
 	"go.uber.org/zap"
 )
 
+// 当开启多服务器部署时,替换下面的配置,使用redis共享存储验证码
+// var store = captcha.NewDefaultRedisStore()
 var store = base64Captcha.DefaultMemStore
 
 // @Tags Base