mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +02:00
fix(auth): change oauth error type
Co-Authored-By: chiptus <chiptus@users.noreply.github.com>
This commit is contained in:
parent
44b7e0fdca
commit
fc8938e871
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue