feat ✨ 验证码store支持go-admin cache
This commit is contained in:
1 parent
e034e5b1ea
commit
eddfe26308
5 files changed
+12
-6
No files matched your search
@@ -20,6 +20,11 @@ import (
|
||||
|
||||
var store = base64Captcha.DefaultMemStore
|
||||
|
||||
// SetStore 设置store
|
||||
func SetStore(s base64Captcha.Store) {
|
||||
store = s
|
||||
}
|
||||
|
||||
func PayloadFunc(data interface{}) jwt.MapClaims {
|
||||
if v, ok := data.(map[string]interface{}); ok {
|
||||
u, _ := v["user"].(SysUser)
|
||||
|
||||
Reference in new issue
Block a user