fix username in login field -- should be 'username' not 'name'

This commit is contained in:
2025-04-07 16:26:12 -04:00
parent 253f3dcdac
commit 3ac7e488af

View File

@@ -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)