aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-03-12 17:39:53 +0000
committerzsloan2021-03-12 17:39:53 +0000
commite523b3ee43ca86357bd983301c85f6a90f662b10 (patch)
tree1dc7a47648db5a591c5f9f605ac31149b7570446
parent4e087c6e761f7ee5971c6c82782491fd671962a1 (diff)
downloadgenenetwork2-e523b3ee43ca86357bd983301c85f6a90f662b10.tar.gz
Fixed imports in send_forgot_password_email since they apparently needed to be changed for Python 3.8
-rw-r--r--wqflask/wqflask/user_login.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/user_login.py b/wqflask/wqflask/user_login.py
index 041f1f11..b6e7973f 100644
--- a/wqflask/wqflask/user_login.py
+++ b/wqflask/wqflask/user_login.py
@@ -334,8 +334,8 @@ def forgot_password():
return render_template("new_security/forgot_password.html", errors=errors)
def send_forgot_password_email(verification_email):
- from email.MIMEMultipart import MIMEMultipart
- from email.MIMEText import MIMEText
+ from email.mime.multipart import MIMEMultipart
+ from email.mime.text import MIMEText
template_name = "email/forgot_password.txt"
key_prefix = "forgot_password_code"