mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Merge pull request #482 from alphagov/update-requirements
Update requirements
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from flask import Blueprint
|
||||
|
||||
main = Blueprint('main', __name__)
|
||||
main = Blueprint('main', __name__) # noqa
|
||||
|
||||
from app.main.views import (
|
||||
index,
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
from flask.ext.bcrypt import generate_password_hash, check_password_hash
|
||||
|
||||
|
||||
def hashpw(password):
|
||||
return generate_password_hash(password.encode('UTF-8'), 10)
|
||||
|
||||
|
||||
def check_hash(password, hashed_password):
|
||||
# If salt is invalid throws a 500 should add try/catch here
|
||||
return check_password_hash(hashed_password, password)
|
||||
@@ -1,7 +1,5 @@
|
||||
import re
|
||||
from wtforms import ValidationError
|
||||
from datetime import datetime
|
||||
from app.main.encryption import check_hash
|
||||
from notifications_utils.template import Template
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user