This commit is contained in:
Son 2021-10-15 10:39:29 +02:00
parent d18bb28ca9
commit 4d740a4dc0
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def custom_domain():
"error",
)
elif Mailbox.filter(
Mailbox.verified == True, Mailbox.email.endswith(f"@{new_domain}")
Mailbox.verified.is_(True), Mailbox.email.endswith(f"@{new_domain}")
).first():
flash(
f"{new_domain} already used in a SimpleLogin mailbox", "error"