Fix auto-webhook creation failure due to wrong scheme

This commit is contained in:
rubenwardy
2020-01-25 03:03:45 +00:00
parent 43c2ee6b7b
commit 19a626e237
4 changed files with 13 additions and 6 deletions

View File

@@ -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)