aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>