From ba6bf1a6827617123df7fc3ed8ed19139edd787f Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Thu, 8 Feb 2024 09:32:19 -0800 Subject: [PATCH] lets-go: fix errant/unwanted UI text --- snippetbox/cmd/web/handlers.go | 1 - snippetbox/ui/html/pages/login.tmpl | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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}}