[Modify user] Fix. modify page should now have field set.

#1
This commit is contained in:
eoghan.conlon 2023-08-01 13:03:25 +01:00
parent e3c05368fb
commit cac80847ac

View file

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