Skip to content

Commit

Permalink
Update handlers functions
Browse files Browse the repository at this point in the history
  • Loading branch information
abneed committed May 23, 2022
1 parent 36220d6 commit f1f944d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (m *Repository) PostReservation(w http.ResponseWriter, r *http.Request) {
form := forms.New(r.PostForm)

form.Required("first_name", "last_name", "email")
form.MinLength("first_name", 3, r)
form.MinLength("first_name", 3)
form.IsEmail("email")

if !form.Valid() {
Expand Down

0 comments on commit f1f944d

Please sign in to comment.