diff --git a/snippetbox/cmd/web/handlers.go b/snippetbox/cmd/web/handlers.go index c9921f8..fa7363a 100644 --- a/snippetbox/cmd/web/handlers.go +++ b/snippetbox/cmd/web/handlers.go @@ -216,7 +216,6 @@ func (app *application) userLoginPost(w http.ResponseWriter, r *http.Request) { } app.sessionManager.Put(r.Context(), "authenticatedUserID", userID) - app.sessionManager.Put(r.Context(), "flash", fmt.Sprintf("LOGGED IN USER %d!", userID)) http.Redirect(w, r, "/", http.StatusSeeOther) } diff --git a/snippetbox/ui/html/pages/login.tmpl b/snippetbox/ui/html/pages/login.tmpl index 04f0b7a..d3d7e39 100644 --- a/snippetbox/ui/html/pages/login.tmpl +++ b/snippetbox/ui/html/pages/login.tmpl @@ -7,7 +7,7 @@
{{.}}
{{end}}
- + {{with .Form.FieldErrors.email}} {{end}}