The current email validation function is very simple, but does not accept every valid email address according to RFCs (https://en.wikipedia.org/wiki/Email_address#Syntax). I can submit a PR if you are OK to improve the check_email_format function and linked test.
|
return bool(re.match(r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)", email)) |
Example: ~@provider.com shall be accepted.
This issue may be linked to #603
The current email validation function is very simple, but does not accept every valid email address according to RFCs (https://en.wikipedia.org/wiki/Email_address#Syntax). I can submit a PR if you are OK to improve the
check_email_formatfunction and linked test.CTFd/CTFd/utils/__init__.py
Line 696 in 51d0980
Example:
~@provider.comshall be accepted.This issue may be linked to #603