Skip to content

feat: add custom error message on signups disabled page #11959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Feb 1, 2024
Prev Previous commit
Next Next commit
StatusForbidden
  • Loading branch information
mtojek committed Jan 31, 2024
commit 5b4d9a5f996816cdd1b3fa21e0a5d3592094db91
2 changes: 1 addition & 1 deletion coderd/userauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ func (api *API) oauthLogin(r *http.Request, params *oauthLoginParams) ([]*http.C
signupsDisabledText = api.OIDCConfig.SignupsDisabledText
}
return httpError{
code: http.StatusBadRequest,
code: http.StatusForbidden,
msg: "Signups are disabled",
detail: signupsDisabledText,
renderStaticPage: true,
Expand Down