From 0ed3b8c672b18ef5d36e0cbb508f046543f9998b Mon Sep 17 00:00:00 2001 From: liaoyongfu Date: Wed, 14 Jul 2021 10:57:53 +0800 Subject: [PATCH] add captcha redis --- server/api/v1/sys_captcha.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/api/v1/sys_captcha.go b/server/api/v1/sys_captcha.go index fe46a20a..9d76db84 100644 --- a/server/api/v1/sys_captcha.go +++ b/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