aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2019-09-30 14:42:16 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2019-09-30 14:42:16 +0200
commit5d11dedf6ae20c5f74eb7188b9fbca93830218ee (patch)
treeb3783016a37dd6ca668dedd2c2ce33bfe3eb5b33 /src/web
parentfixed wront definition of indexes (diff)
downloadnewspipe-5d11dedf6ae20c5f74eb7188b9fbca93830218ee.tar.gz
newspipe-5d11dedf6ae20c5f74eb7188b9fbca93830218ee.tar.bz2
newspipe-5d11dedf6ae20c5f74eb7188b9fbca93830218ee.zip
The import 'werkzeug.generate_password_hash' is deprecated.
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