Notifications
Clear all
Combu Server/Client
2
Posts
2
Users
0
Reactions
757
Views
Topic starter
Hello. I have a user who is trying to create an account. His email is novel and ends in "[username]@x398.services". I can reproduce the issue as its returned as not a valid email address. How is the email validated and can I adjust this to allow such an email address to pass.
Thanks!
Posted : 08/01/2022 8:29 pm
Hi,
there's a function "IsValidEmail" in /vendor/skaredcreations/combu/combu/Utils.php that uses a regular expression to validate an email address, the last part of the regexp pattern (that is "(\.[a-z]{2,3})") is what you're looking for.
We could eventually replace the regexp pattern with the following:
$regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]+)$/i';
FRANCESCO CROCETTI @ SKARED CREATIONS
Posted : 10/01/2022 11:11 am