[Sign-up_script] Fix. Password now extracted from form

This commit is contained in:
eoghan.conlon 2023-07-29 19:03:00 +01:00
parent d618bea3dc
commit 2b9f0f2010

View file

@ -5,7 +5,7 @@ function formHandler(listener){
listener.preventDefault();
const formData = new FormData(formEl);
const user = formData.get("user");
const pass = formData.get("password");
const pass = formData.get("pass");
const newPW = formData.get("newPW");
if(newPW === formData.get("newPWConfirm")){
const object = {user: user, pass: pass, field: "userPassword", value: newPW}