Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 750 Bytes

email.md

File metadata and controls

9 lines (6 loc) · 750 Bytes

Should email be stored as lowercase?

Don't bother digging the rabbit hole - just lowercase the email when you store it. You can also use citext to store the original case, which allows case insensitive matching.

RFC standard says otherwise, but google/lastpass doesn't care what casing you use to login the account. It's also better for user registration on mobile since they can accidentally uppercase the first character, and become unable to login later.