Skip to content

Alter email validation regex to accept UTF-8 emails #1392

Description

@infomiho

Wasp's email validator doesn't allow emails with umlauts

report: https://discord.com/channels/686873244791210014/812664118887841813/1139192497495621784

Hi there!
I have found a problem regarding the built-in auth features when using email addresses containing german Umlaute (ä, ö and ü). The login service always responds with validation failed.
As i am using a custom registration service I dont know, if the register method already would fail with these accents. I dont if its worth looking into it as they are really rare. Just wanted to drop it 🙂

Solution

We are using a pretty specific regex to validate emails, we should probably simplify it to accept email addresses with umlauts:

For example: https://www.regextester.com/108684

Warning

One thing is that some email providers don't support umlauts, while others do. We should decide how to handle this:

  • alter the default regex
  • allow email regex customization?

Metadata

Metadata

Assignees

Labels

f: authshouldfixWe should do/fix this at some point

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions