From cac80847acd5ff0970e41234bf25f8a7ee9eb1cd Mon Sep 17 00:00:00 2001 From: "eoghan.conlon" Date: Tue, 1 Aug 2023 13:03:25 +0100 Subject: [PATCH] [Modify user] Fix. modify page should now have field set. #1 --- src/modify.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modify.html b/src/modify.html index 2b63dbd..d3e4707 100644 --- a/src/modify.html +++ b/src/modify.html @@ -36,7 +36,7 @@ function formHandler(listener) { listener.preventDefault(); const formData = new FormData(formEl); - const field = formData.get("field"); + const field = document.getElementById('field').value; if (field !== "") { const user = formData.get("user"); const pass = formData.get("pass");