mirror of https://github.com/portainer/portainer
fix(auth): change oauth error type
Co-Authored-By: chiptus <chiptus@users.noreply.github.com>pull/2749/head
parent
44b7e0fdca
commit
fc8938e871
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue