Fix: missing return when token is null (#4512)

Signed-off-by: Zhiyu Wang <cloudsky.newbis@gmail.com>
This commit is contained in:
Zhiyu Wang
2022-08-01 16:02:18 +08:00
committed by GitHub
parent f1790e5e6b
commit f7d3fbaeca
@@ -104,6 +104,7 @@ func authCheckFilter(req *restful.Request, res *restful.Response, chain *restful
}
if tokenValue == "" {
bcode.ReturnError(req, res, bcode.ErrNotAuthorized)
return
}
}