From e689c05fca49211a4a0e81a180f20b2e89246447 Mon Sep 17 00:00:00 2001 From: "eoghan.conlon" Date: Sat, 29 Jul 2023 23:26:41 +0100 Subject: [PATCH] [Modify user] Refactoring email change page to be a general modify page #1 --- src/modify.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/modify.html b/src/modify.html index a8fc1aa..65c2518 100644 --- a/src/modify.html +++ b/src/modify.html @@ -2,7 +2,7 @@ - Email change + Modify user @@ -11,8 +11,14 @@

- -
+ + +
+ +

@@ -28,7 +34,7 @@ const formData = new FormData(formEl); const user = formData.get("user"); const pass = formData.get("pass"); - const newEmail = formData.get("newEmail"); + const newEmail = formData.get("value"); const object = {user: user, pass: pass, field: "mail", value: newEmail} fetch('https://api.sso.skynet.ie/ldap/update', { method: 'POST',