Skip to content

Commit

Permalink
fix: #11554, email requirement bypass by sending in whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed May 2, 2023
1 parent b3787bd commit 2b8dd3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/user/interstitials.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Interstitials.email = async (data) => {
issuePasswordChallenge: !!data.userData.uid && hasPassword,
},
callback: async (userData, formData) => {
if (formData.email) {
formData.email = String(formData.email).trim();
}

// Validate and send email confirmation
if (userData.uid) {
const isSelf = parseInt(userData.uid, 10) === parseInt(data.req.uid, 10);
Expand Down

0 comments on commit 2b8dd3d

Please sign in to comment.