@@ -20,7 +20,6 @@ func JWTAuth(required bool) gin.HandlerFunc {
|
||||
|
||||
if required == true && uid == "" {
|
||||
c.JSON(401, gin.H{"status": "unauthorized"})
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user