From fba7e9220054bf71a0c363da90378e0c42142b4a Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 10 May 2013 21:11:54 +0000 Subject: More security changes --- wqflask/wqflask/__init__.py | 2 ++ wqflask/wqflask/model.py | 3 +++ 2 files changed, 5 insertions(+) (limited to 'wqflask') diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py index ff018fdc..8e648c63 100644 --- a/wqflask/wqflask/__init__.py +++ b/wqflask/wqflask/__init__.py @@ -11,6 +11,8 @@ from utility import formatting app = Flask(__name__) +app.config.SECURITY_PASSWORD_HASH='bcrypt' + # See http://flask.pocoo.org/docs/config/#configuring-from-files app.config.from_object('cfg.default_settings') app.config.from_envvar('WQFLASK_SETTINGS') diff --git a/wqflask/wqflask/model.py b/wqflask/wqflask/model.py index be86ce77..9f9267d9 100644 --- a/wqflask/wqflask/model.py +++ b/wqflask/wqflask/model.py @@ -37,3 +37,6 @@ class User(db.Model, UserMixin): # Setup Flask-Security user_datastore = SQLAlchemyUserDatastore(db, User, Role) security = Security(app, user_datastore) + + +db.metadata.create_all(db.engine) -- cgit v1.2.3