feat: support webui_auth false

#929
This commit is contained in:
Timothy J. Baek
2024-05-08 08:40:18 -07:00
parent 0d633c0d17
commit 01472c071b
5 changed files with 23 additions and 7 deletions

View File

@@ -38,9 +38,10 @@ def calculate_sha256_string(string):
def validate_email_format(email: str) -> bool:
if not re.match(r"[^@]+@[^@]+\.[^@]+", email):
return False
return True
if email.endswith("@localhost"):
return True
return bool(re.match(r"[^@]+@[^@]+\.[^@]+", email))
def sanitize_filename(file_name):