From 618bc9ed1a1ef4a413d83008d4549fa7a89d1d00 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期三, 18 十二月 2019 16:50:35 +0800 Subject: [PATCH] update sh --- middlewares/auth/jwt.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/middlewares/auth/jwt.go b/middlewares/auth/jwt.go index aadecf4..37b4fc3 100644 --- a/middlewares/auth/jwt.go +++ b/middlewares/auth/jwt.go @@ -50,7 +50,7 @@ return authJwtToken.Valid } -func (jwtAuth *jwtAuthManager) User(c *gin.Context) interface{} { +func (jwtAuth *jwtAuthManager) User(c *gin.Context) map[string]interface{} { var jwtToken *jwtLib.Token if jwtUser, exist := c.Get("User"); !exist { tokenStr := strings.Replace(c.Request.Header.Get("Authorization"), "Bearer ", "", -1) -- Gitblit v1.8.0