immich icon indicating copy to clipboard operation
immich copied to clipboard

[BUG] Email normalization doesn't handle subaddresses, dots, etc.

Open mertalev opened this issue 2 years ago • 0 comments

The bug

I was looking through validator and noticed they have a normalizeEmail function that does more thorough sanitation beyond converting to lowercase. For instance, Gmail ignores dots so it handles removing them for Gmail accounts. I imagine this would be good to prevent duplicate emails from being registered. At the same time, I'm not sure if there's a good way to apply this to emails in the database so existing accounts still work. Thoughts?

The OS that Immich Server is running on

N/A

Version of Immich Server

v1.62.1

Version of Immich Mobile App

N/A

Platform with the issue

  • [X] Server
  • [ ] Web
  • [ ] Mobile

Your docker-compose.yml content

N/A

Your .env content

N/A

Reproduction steps

N/A

Additional information

No response

mertalev avatar Jun 21 '23 19:06 mertalev