~cedric/freshermeat

ce8fad324aa30b5083852381cd48a1e027375f9b — C├ędric Bonhomme 9 days ago 6204ffe master
chg: [security] Secure all views with flask_wtf.csrf (#48).
1 files changed, 2 insertions(+), 0 deletions(-)

M freshermeat/bootstrap.py
M freshermeat/bootstrap.py => freshermeat/bootstrap.py +2 -0
@@ 26,6 26,7 @@ from flask import request
from flask_mail import Mail
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from flask_wtf.csrf import CSRFProtect
from werkzeug.middleware.proxy_fix import ProxyFix




@@ 78,6 79,7 @@ application.wsgi_app = ProxyFix(
application.config.from_pyfile(
    os.environ.get("APPLICATION_SETTINGS", "development.py"), silent=False
)
csrf = CSRFProtect(application)
db = SQLAlchemy(application)
mail = Mail(application)
migrate = Migrate(application, db)