aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/controllers/user.py2
-rw-r--r--src/web/models/__init__.py4
-rw-r--r--src/web/views/session_mgmt.py2
3 files changed, 3 insertions, 5 deletions
diff --git a/src/web/controllers/user.py b/src/web/controllers/user.py
index 65e01e6f..6ab04d44 100644
--- a/src/web/controllers/user.py
+++ b/src/web/controllers/user.py
@@ -1,5 +1,5 @@
import logging
-from werkzeug import generate_password_hash, check_password_hash
+from werkzeug.security import generate_password_hash, check_password_hash
from .abstract import AbstractController
from web.models import User
diff --git a/src/web/models/__init__.py b/src/web/models/__init__.py
index 91a2121e..bfb1368c 100644
--- a/src/web/models/__init__.py
+++ b/src/web/models/__init__.py
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
-# newspipe - A Web based news aggregator.
+# Newspipe - A Web based news aggregator.
# Copyright (C) 2010-2018 Cédric Bonhomme - https://www.cedricbonhomme.org
#
# For more information : https://gitlab.com/newspipe/newspipe
@@ -41,8 +41,6 @@ __all__ = ['Feed', 'Role', 'User', 'Article', 'Icon', 'Category',
import os
-from werkzeug import generate_password_hash
-
from sqlalchemy.engine import reflection
from sqlalchemy.schema import (
MetaData,
diff --git a/src/web/views/session_mgmt.py b/src/web/views/session_mgmt.py
index 4026e558..0db76115 100644
--- a/src/web/views/session_mgmt.py
+++ b/src/web/views/session_mgmt.py
@@ -2,7 +2,7 @@ import json
import logging
from datetime import datetime
-from werkzeug import generate_password_hash
+from werkzeug.security import generate_password_hash
from werkzeug.exceptions import NotFound
from flask import (render_template, flash, session, request,
url_for, redirect, current_app)
bgstack15