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

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