For several reasons. For example, what if we want to show the email to the user "Your email is ..." And he/she sees it and says: "Oh, shit, that's not my email, those guys can't even store it properly!"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
With
passport.use('local-signup', new LocalStrategy({
usernameField : 'email',
emails with a dot in the left part (like john.doe@gmail.com) get saved without the dot (johndoe@gmail.com).
How can that be prevented?
Why you want to prevent it?
For several reasons. For example, what if we want to show the email to the user "Your email is ..." And he/she sees it and says: "Oh, shit, that's not my email, those guys can't even store it properly!"