remove the built-in domain check when adding a custom domain

This commit is contained in:
Son 2022-12-26 16:47:54 +01:00
parent 212463d688
commit d20c96c837
1 changed files with 1 additions and 3 deletions

View File

@ -43,9 +43,7 @@ def custom_domain():
if new_domain.startswith("https://"):
new_domain = new_domain[len("https://") :]
if SLDomain.get_by(domain=new_domain):
flash("A custom domain cannot be a built-in domain.", "error")
elif CustomDomain.get_by(domain=new_domain):
if CustomDomain.get_by(domain=new_domain):
flash(f"{new_domain} already used", "error")
elif get_email_domain_part(current_user.email) == new_domain:
flash(