From 9303b69ea569bcb5e581147543a3fd58e90d0d25 Mon Sep 17 00:00:00 2001
From: sunty <1172534965@qq.com>
Date: 星期四, 20 八月 2020 20:05:23 +0800
Subject: [PATCH] add get buckets contrl

---
 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