Skip to content

Commit

Permalink
Update forgotpassword.js
Browse files Browse the repository at this point in the history
  • Loading branch information
camillereaves authored Sep 25, 2023
1 parent b3e6533 commit 17a4276
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/forgotpassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ async function fetchUser(username){
const q = query(users, where('username', '==', username));
const getUsers = (await getDocs(q)).then((querySnapshot) => {
const tempDoc = [];
tempDoc.push({ id: doc.id, ...doc.data() });
querySnapshot.forEach((doc) => {
tempDoc.push({ id: doc.id, ...doc.data() });
});
userData = tempDoc;
})
if(userData.userEmail == userEmail){
Expand Down

0 comments on commit 17a4276

Please sign in to comment.