diff options
-rw-r--r-- | api4/oauth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/oauth.go b/api4/oauth.go index ac293c63e..655adaaee 100644 --- a/api4/oauth.go +++ b/api4/oauth.go @@ -559,7 +559,7 @@ func signupWithOAuth(c *Context, w http.ResponseWriter, r *http.Request) { } if !c.App.Config().TeamSettings.EnableUserCreation { - c.Err = model.NewAppError("signupWithOAuth", "api.oauth.singup_with_oauth.disabled.app_error", nil, "", http.StatusNotImplemented) + http.Redirect(w, r, c.GetSiteURLHeader()+"/error?message="+url.QueryEscape(utils.T("api.oauth.singup_with_oauth.disabled.app_error")), http.StatusTemporaryRedirect) return } |