fix: replace regex email validation with email-validator

Swap hand-rolled regex for the email-validator library which handles
RFC 5322 edge cases correctly. check_deliverability=False skips DNS
lookups (not viable on an intranet). Blank email still passes — only
a non-empty, malformed address triggers the error.
This commit is contained in:
2026-03-09 20:36:54 -06:00
parent e0d72f8057
commit e6d742f92e
2 changed files with 7 additions and 4 deletions
+1
View File
@@ -1,4 +1,5 @@
Flask>=3.1.3
Werkzeug>=3.0.6
Flask-Limiter>=3.0
email-validator>=2.0
gunicorn