fix: Update domain to block starting with _
All checks were successful
Build Docker / Build Main Image (push) Successful in 18s
Build Docker / Build SLDs Image (push) Successful in 21s

This commit is contained in:
Nathan Woodburn 2023-11-17 10:43:23 +11:00
parent abf9f946d0
commit cb055cc13e
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -64,6 +64,11 @@ def signup():
email = request.form['email'] email = request.form['email']
domain = request.form['domain'] domain = request.form['domain']
password = request.form['password'] password = request.form['password']
# Verify domain
if domain.startswith('_'):
return error('Invalid domain')
try: try:
valid = validate_email(email) valid = validate_email(email)
email = valid.email email = valid.email