return as soon as the user cannot be authenticated.
parent
a9d9127741
commit
ed30127f11
|
@ -485,6 +485,7 @@ func (self *HttpServer) tryAsClusterAdmin(w libhttp.ResponseWriter, r *libhttp.R
|
|||
if err != nil {
|
||||
w.WriteHeader(libhttp.StatusUnauthorized)
|
||||
w.Write([]byte(err.Error()))
|
||||
return
|
||||
}
|
||||
statusCode, body := yieldUser(user, yield)
|
||||
w.WriteHeader(statusCode)
|
||||
|
|
Loading…
Reference in New Issue