From 3ac7e488af7d09211f6641d67773dcbe34bdbba1 Mon Sep 17 00:00:00 2001 From: William P Date: Mon, 7 Apr 2025 16:26:12 -0400 Subject: [PATCH] fix username in login field -- should be 'username' not 'name' --- api/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/auth.go b/api/auth.go index 377da54..9632d13 100644 --- a/api/auth.go +++ b/api/auth.go @@ -15,7 +15,7 @@ func Login(w http.ResponseWriter, r *http.Request) { return } - username := r.FormValue("name") + username := r.FormValue("username") password := r.FormValue("password") if username == "" || password == "" { http.Error(w, "Username and password cannot be empty", http.StatusBadRequest)