From 6ef1f4c04d479d45aa3121979b23de784ad8f0d6 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 30 Mar 2018 08:25:17 +0000 Subject: Fixes forgotten password error, see #257 --- wqflask/wqflask/user_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wqflask/wqflask/user_manager.py b/wqflask/wqflask/user_manager.py index c55649f3..755d64da 100644 --- a/wqflask/wqflask/user_manager.py +++ b/wqflask/wqflask/user_manager.py @@ -55,7 +55,7 @@ logger = getLogger(__name__) from base.data_set import create_datasets_list import requests -from utility.elasticsearch_tools import get_elasticsearch_connection, get_user_by_unique_column, save_user +from utility.elasticsearch_tools import es, get_elasticsearch_connection, get_user_by_unique_column, save_user THREE_DAYS = 60 * 60 * 24 * 3 #THREE_DAYS = 45 @@ -466,7 +466,6 @@ def password_reset(): @app.route("/n/password_reset_step2", methods=('POST',)) def password_reset_step2(): - from utility.elasticsearch_tools import es logger.debug("in password_reset request.url is:", request.url) errors = [] -- cgit v1.2.3