[pass-reset_script] Removed testing script

This commit is contained in:
eoghan.conlon 2023-07-27 18:55:54 +01:00
parent 6d50144248
commit 3042660079

View file

@ -1,17 +1,3 @@
function handleSubmitManual(form) {
const field = "password"
const user = form.uid.value;
const pass = form.oldPW.value;
const newPW = form.newPW.value;
const newPWConfirm = form.newPWConfirm.value;
if (newPW === newPWConfirm){
let obj = { "user": user , "pass": pass , "field": field, "value": newPW };
alert("Form submitted");
} else {
alert("New passwords doesn't match");
}
}
const formEl = document.getElementById("reset");
formEl.addEventListener('submit', () => {
event.preventDefault();