fix(api): api error message [EE-6818]

pull/11370/head
prabhat khera 9 months ago
parent 6e11c10bab
commit e075b71fef

@ -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…
Cancel
Save