fix: Update domain to block starting with _
This commit is contained in:
parent
abf9f946d0
commit
cb055cc13e
5
main.py
5
main.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user