1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

fix(auth): change oauth error type

Co-Authored-By: chiptus <chiptus@users.noreply.github.com>
This commit is contained in:
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

View file

@ -127,7 +127,7 @@ func (handler *Handler) authenticateOAuth(w http.ResponseWriter, r *http.Request
} }
if u == nil && !settings.OAuthSettings.OAuthAutoCreateUsers { 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 { if u == nil {