Skip to content

Commit 0ed3b8c

Browse files
author
liaoyongfu
committed
add captcha redis
1 parent d023905 commit 0ed3b8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/api/v1/sys_captcha.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import (
88
"go.uber.org/zap"
99
)
1010

11+
// 当开启多服务器部署时,替换下面的配置,使用redis共享存储验证码
12+
// var store = captcha.NewDefaultRedisStore()
1113
var store = base64Captcha.DefaultMemStore
1214

1315
// @Tags Base

0 commit comments

Comments
 (0)