mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
1、action中各动作添加数据权限
2、修改jwt中key为常量
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func ExtractClaims(c *gin.Context) jwt.MapClaims {
|
||||
claims, exists := c.Get("JWT_PAYLOAD")
|
||||
claims, exists := c.Get(jwt.JwtPayloadKey)
|
||||
if !exists {
|
||||
return make(jwt.MapClaims)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user