mirror of https://github.com/portainer/portainer
fix(api): api error message [EE-6818]
parent
a2a4c85f2d
commit
bf6d205d78
|
@ -280,7 +280,7 @@ func (bouncer *RequestBouncer) mwAuthenticateFirst(tokenLookups []tokenLookup, n
|
||||||
for _, lookup := range tokenLookups {
|
for _, lookup := range tokenLookups {
|
||||||
resultToken, err := lookup(r)
|
resultToken, err := lookup(r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
httperror.WriteError(w, http.StatusUnauthorized, "Invalid API key", httperrors.ErrUnauthorized)
|
httperror.WriteError(w, http.StatusUnauthorized, "Invalid token", httperrors.ErrUnauthorized)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue