fix(auth): change oauth error type

Co-Authored-By: chiptus <chiptus@users.noreply.github.com>
pull/2749/head
Anthony Lapenna 2019-01-16 16:50:19 +02:00 committed by GitHub
parent 44b7e0fdca
commit fc8938e871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ func (handler *Handler) authenticateOAuth(w http.ResponseWriter, r *http.Request
}
if u == nil && !settings.OAuthSettings.OAuthAutoCreateUsers {
return &httperror.HandlerError{http.StatusForbidden, "Unregistered account", portainer.ErrUnauthorized}
return &httperror.HandlerError{http.StatusForbidden, "Account must be created inside Portainer beforehand", portainer.ErrUnauthorized}
}
if u == nil {