Corrected doubled import

This commit is contained in:
Vivek Santayana 2021-12-01 00:45:20 +00:00
parent 346238dab8
commit cffafa82d9

View File

@ -112,7 +112,6 @@ def reset():
@admin_account_required @admin_account_required
@disable_if_logged_in @disable_if_logged_in
def reset_gateway(token1,token2): def reset_gateway(token1,token2):
from main import db
user = decrypt_find_one( db.users, {'reset_token' : token1} ) user = decrypt_find_one( db.users, {'reset_token' : token1} )
if not user: if not user:
return redirect(url_for('admin_auth.login')) return redirect(url_for('admin_auth.login'))