Invalid email while trying to create users

I am sure you have read a bunch of blog posts about email validation while making Enonic XP already, but I believe the regex you have specified blocks a bunch of valid email adresses now that gTLDs are available. Have you considered just checking that there is a @ present?

Unless I am mistaken, one example would be the email on this contact page for instance: http://about.museum/contact/

3 Likes

@espen_haviken Good point. I had not noticed the regex is actually rejecting a lot of valid emails.

I agree we should just check that it contains 1 @ character. In my opinion that is good enough, and nothing else guarantees that the email is correct besides sending a validation link via email.

1 Like