From fc8938e8719fdc16031b110c754287c7dc83368e Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Wed, 16 Jan 2019 16:50:19 +0200 Subject: [PATCH] fix(auth): change oauth error type Co-Authored-By: chiptus --- api/http/handler/auth/authenticate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/auth/authenticate.go b/api/http/handler/auth/authenticate.go index eca24a902..eb1b5128d 100644 --- a/api/http/handler/auth/authenticate.go +++ b/api/http/handler/auth/authenticate.go @@ -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 {