Skip to content

Commit

Permalink
Update sprout.js
Browse files Browse the repository at this point in the history
Add pickup of security questions/answers by database, add passwordCreated vs userCreated timestamp differentiation
  • Loading branch information
camillereaves authored Sep 24, 2023
1 parent c51846b commit 3f2bb11
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions public/sprout.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,16 @@ document.getElementById("new_user_form").addEventListener("submit", async functi
userEmail: userEmail,
firstName: firstName,
lastName: lastName,
address: address,
DOB : dateOfBirth,
username: username,
password: password,
createdAt: serverTimestamp(),
username: username
passwordCreatedAt: serverTimestamp(),
question1: question1,
answer1: answer1,
question2: question2,
answer2: answer2,
address: address,
DOB: dateOfBirth,
userCreatedAt: serverTimestamp()
}

await setDoc(doc(db, 'new_user_requests', username.toString()), newUser);
Expand Down

0 comments on commit 3f2bb11

Please sign in to comment.