mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
Updated PreconditionFailed status occurences to more appropriate statuses. (#5513)
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ func (api *API) userOAuth2Github(rw http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
if verifiedEmail == nil {
|
||||
httpapi.Write(ctx, rw, http.StatusPreconditionRequired, codersdk.Response{
|
||||
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
|
||||
Message: "Your primary email must be verified on GitHub!",
|
||||
})
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user