aboutsummaryrefslogtreecommitdiff
path: root/app/tasks/emails.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-01-25 03:03:45 +0000
committerrubenwardy <rw@rubenwardy.com>2020-01-25 03:03:45 +0000
commit19a626e2377997b23a176b4e65a33ea3e31ea467 (patch)
tree36b818984ca8212797807dc4a1da3f74247abd9b /app/tasks/emails.py
parent43c2ee6b7b55ea864568689946c5732d16b2f722 (diff)
downloadcheatdb-19a626e2377997b23a176b4e65a33ea3e31ea467.tar.xz
Fix auto-webhook creation failure due to wrong scheme
Diffstat (limited to 'app/tasks/emails.py')
-rw-r--r--app/tasks/emails.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/tasks/emails.py b/app/tasks/emails.py
index f81deaa..fa5a8c8 100644
--- a/app/tasks/emails.py
+++ b/app/tasks/emails.py
@@ -19,6 +19,7 @@ from flask import render_template, url_for
from flask_mail import Message
from app import mail
from app.tasks import celery
+from app.utils import abs_url_for
@celery.task()
def sendVerifyEmail(newEmail, token):
@@ -34,7 +35,7 @@ def sendVerifyEmail(newEmail, token):
If this was you, then please click this link to verify the address:
{}
- """.format(url_for('users.verify_email', token=token, _external=True))
+ """.format(abs_url_for('users.verify_email', token=token))
msg.html = render_template("emails/verify.html", token=token)
mail.send(msg)