aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorSam2013-05-10 21:11:54 +0000
committerSam2013-05-10 21:11:54 +0000
commitfba7e9220054bf71a0c363da90378e0c42142b4a (patch)
tree0977bf9702d0a71d09d1aadcff42682df0aebfe2 /wqflask
parent8ff6e6a1b7f4e435eb06130b82cce579bcd32dcc (diff)
downloadgenenetwork2-fba7e9220054bf71a0c363da90378e0c42142b4a.tar.gz
More security changes
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)