Explorar el Código

add captcha redis

liaoyongfu hace 3 años
padre
commit
0ed3b8c672
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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