Fix some type change bugs (error)
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -17,10 +17,10 @@ func JWTAuth() gin.HandlerFunc {
|
||||
uid, err := authtoken.HeaderVerify(auth)
|
||||
if err != nil {
|
||||
errorCode := new(exception.Builder).
|
||||
SetStatus(exception.ErrorStatusServer).
|
||||
SetService(exception.MiddlewareJwtService).
|
||||
SetEndpoint(exception.MiddlewareEndpoint).
|
||||
SetType(exception.ErrorTypeSpecific).
|
||||
SetStatus(exception.StatusServer).
|
||||
SetService(exception.MiddlewareServiceJwt).
|
||||
SetEndpoint(exception.EndpointMiddlewareService).
|
||||
SetType(exception.TypeSpecific).
|
||||
SetOriginal(exception.CommonErrorUnauthorized).
|
||||
Build()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user