mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 15:55:23 +02:00
fix(api): api error message [EE-6818]
This commit is contained in:
parent
a2a4c85f2d
commit
bf6d205d78
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue