token path param

This commit is contained in:
2022-10-05 11:15:56 +03:00
parent d18424ed59
commit 5811e0e878
3 changed files with 2 additions and 4 deletions

View File

@@ -11,9 +11,8 @@ async def send_auth_email(user, token):
Follow the <a href='%s'>link</link> to authorize
</body></html>
"""
url = "%s/confirm-email" % BACKEND_URL
to = "%s <%s>" % (user.username, user.email)
url_with_token = "%s?token=%s" % (url, token)
url_with_token = "%s/confirm-email/%s" % (BACKEND_URL, token)
text = text % url_with_token
response = requests.post(
MAILGUN_API_URL,