diff --git a/handlers/account/authentication.go b/handlers/account/authentication.go index d83282c..34a74a3 100644 --- a/handlers/account/authentication.go +++ b/handlers/account/authentication.go @@ -41,6 +41,7 @@ func Login(db *sql.DB) http.HandlerFunc { username := r.FormValue("username") password := r.FormValue("password") + // ToDo: this outputs password in clear text remove or obscure! logging.Info("🔐 Login attempt - Username: %s, Password: %s", username, password) user := storage.GetUserByUsername(db, username) @@ -51,7 +52,6 @@ func Login(db *sql.DB) http.HandlerFunc { session, _ := httpHelpers.GetSession(w, r) session.Values["flash"] = "Invalid username or password." session.Save(r, w) - log.Printf("login did it") http.Redirect(w, r, "/account/login", http.StatusSeeOther) return }