From cb055cc13e71efbd00e6cfa700c9e13b95e7d042 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 17 Nov 2023 10:43:23 +1100 Subject: [PATCH] fix: Update domain to block starting with _ --- main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.py b/main.py index c706a7b..7e83bcc 100644 --- a/main.py +++ b/main.py @@ -64,6 +64,11 @@ def signup(): email = request.form['email'] domain = request.form['domain'] password = request.form['password'] + + # Verify domain + if domain.startswith('_'): + return error('Invalid domain') + try: valid = validate_email(email) email = valid.email