[pass-reset_script] Removed testing script
This commit is contained in:
parent
6d50144248
commit
3042660079
1 changed files with 0 additions and 14 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue