aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-26 14:50:50 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-26 14:50:50 +0000
commitd56b0a1223e4211c49a312898ac867b2bf7df7ec (patch)
treee1bdbc21d70a73070ff8acb2c87e043952ca8990
parentFancy message flashing (diff)
downloadAnnotateChange-d56b0a1223e4211c49a312898ac867b2bf7df7ec.tar.gz
AnnotateChange-d56b0a1223e4211c49a312898ac867b2bf7df7ec.zip
Bugfixes for email
-rw-r--r--app/auth/email.py5
-rw-r--r--app/templates/email/reset_password.html2
2 files changed, 2 insertions, 5 deletions
diff --git a/app/auth/email.py b/app/auth/email.py
index 9f6f9d0..c071518 100644
--- a/app/auth/email.py
+++ b/app/auth/email.py
@@ -1,11 +1,8 @@
# -*- coding: utf-8 -*-
-from threading import Thread
-
from flask import current_app, render_template
-from app import mail
-
+from app.email import send_email
def send_password_reset_email(user):
token = user.get_reset_password_token()
diff --git a/app/templates/email/reset_password.html b/app/templates/email/reset_password.html
index 5ce604d..c76cfeb 100644
--- a/app/templates/email/reset_password.html
+++ b/app/templates/email/reset_password.html
@@ -6,7 +6,7 @@
</a>.
</p>
<p>Alternatively, you can paste the following link in your browser's address bar:</p>
-<p>{{ url_for('reset_password', token=token, _external=True) }}</p>
+<p>{{ url_for('auth.reset_password', token=token, _external=True) }}</p>
<p>If you have not requested a password reset then you can simply ignore this email.</p>
<p>Sincerely,</p>
<p>The AnnotateChange Team</p>