black
This commit is contained in:
parent
f2f13958c7
commit
5d948faf56
|
@ -199,7 +199,9 @@ def mailbox_detail_route(mailbox_id):
|
|||
def verify_mailbox_change(user, mailbox, new_email):
|
||||
s = Signer(MAILBOX_SECRET)
|
||||
mailbox_id_signed = s.sign(str(mailbox.id)).decode()
|
||||
verification_url = f"{URL}/dashboard/mailbox/confirm_change?mailbox_id={mailbox_id_signed}"
|
||||
verification_url = (
|
||||
f"{URL}/dashboard/mailbox/confirm_change?mailbox_id={mailbox_id_signed}"
|
||||
)
|
||||
|
||||
send_email(
|
||||
new_email,
|
||||
|
|
4
cron.py
4
cron.py
|
@ -418,7 +418,9 @@ def sanity_check():
|
|||
def check_custom_domain():
|
||||
LOG.d("Check verified domain for DNS issues")
|
||||
|
||||
for custom_domain in CustomDomain.query.filter_by(verified=True): # type: CustomDomain
|
||||
for custom_domain in CustomDomain.query.filter_by(
|
||||
verified=True
|
||||
): # type: CustomDomain
|
||||
mx_domains = get_mx_domains(custom_domain.domain)
|
||||
|
||||
if sorted(mx_domains) != sorted(EMAIL_SERVERS_WITH_PRIORITY):
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import os
|
||||
|
||||
# flake8: noqa: E402
|
||||
|
||||
os.environ["CONFIG"] = os.path.abspath(
|
||||
|
|
Loading…
Reference in a new issue