ch14.6-14.7
This commit is contained in:
@@ -134,8 +134,9 @@ func (app *application) snippetCreatePost(w http.ResponseWriter, r *http.Request
|
||||
func (app *application) userSignupPost(w http.ResponseWriter, r *http.Request) {
|
||||
var form userSignupForm
|
||||
err := app.decodePostForm(r, &form)
|
||||
|
||||
if err != nil {
|
||||
app.clientError(w, http.StatusBadRequest)
|
||||
app.notFound(w)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user