I am woking on email based authentication that checks database for existing users based on their email and decides whether to create new account or use existing one.
Issue I came across is that users sometimes use different capitalisation in their emails, append things like +1
in the middle etc...
To combat some of these I am now (1) Stripping whitespaces away from the emails (2) always lowercasing them.
I would like to take this further, but am not sure what else I am allowed to do without breaking some emails i.e.
(3) Can I remove everything after +
and before @
signs?
(4) Can I remove other symbols like .
from the emails?