|
@ -42,6 +42,7 @@ func JWTAuth() gin.HandlerFunc { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if err, _ = service.FindUserByUuid(claims.UUID.String()); err != nil { |
|
|
if err, _ = service.FindUserByUuid(claims.UUID.String()); err != nil { |
|
|
|
|
|
_ = service.JsonInBlacklist(model.JwtBlacklist{Jwt: token}) |
|
|
response.FailWithDetailed(gin.H{"reload": true}, err.Error(), c) |
|
|
response.FailWithDetailed(gin.H{"reload": true}, err.Error(), c) |
|
|
c.Abort() |
|
|
c.Abort() |
|
|
} |
|
|
} |
|
|