Skip to content

Commit

Permalink
Merge pull request #24 from Bloceducare/development
Browse files Browse the repository at this point in the history
  • Loading branch information
codeWhizperer authored Jul 3, 2023
2 parents e12b3bc + 846d156 commit 75d451a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/api/participant/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ router.post(async (req, res) => {
}

try {
const userRegistering = await participantsDb.findOne({ email });
const emailToLowerCase = email.toLowerCase()
const userRegistering = await participantsDb.findOne({ emailToLowerCase });
if (userRegistering) {
return res
.status(423)
Expand Down

0 comments on commit 75d451a

Please sign in to comment.