aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/__init__.py2
-rw-r--r--wqflask/wqflask/model.py3
2 files changed, 5 insertions, 0 deletions
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)