[Sign-up_script] Fix. Password now extracted from form
This commit is contained in:
parent
d618bea3dc
commit
2b9f0f2010
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ function formHandler(listener){
|
||||||
listener.preventDefault();
|
listener.preventDefault();
|
||||||
const formData = new FormData(formEl);
|
const formData = new FormData(formEl);
|
||||||
const user = formData.get("user");
|
const user = formData.get("user");
|
||||||
const pass = formData.get("password");
|
const pass = formData.get("pass");
|
||||||
const newPW = formData.get("newPW");
|
const newPW = formData.get("newPW");
|
||||||
if(newPW === formData.get("newPWConfirm")){
|
if(newPW === formData.get("newPWConfirm")){
|
||||||
const object = {user: user, pass: pass, field: "userPassword", value: newPW}
|
const object = {user: user, pass: pass, field: "userPassword", value: newPW}
|
||||||
|
|
Loading…
Reference in a new issue