From 6fa603c92b3329a6e49b8baa0ba68489a0ebfba8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 1 Apr 2019 22:10:22 -0700 Subject: add necessary CSRF invocation to entrypoint --- python/fatcat_web/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py index 00bc84fd..3f3824e1 100644 --- a/python/fatcat_web/__init__.py +++ b/python/fatcat_web/__init__.py @@ -3,6 +3,7 @@ from flask import Flask from flask_uuid import FlaskUUID from flask_debugtoolbar import DebugToolbarExtension from flask_login import LoginManager +from flask_wtf.csrf import CSRFProtect from authlib.flask.client import OAuth from loginpass import create_flask_blueprint, Gitlab from raven.contrib.flask import Sentry @@ -10,11 +11,13 @@ import fatcat_client from fatcat_web.web_config import Config + toolbar = DebugToolbarExtension() app = Flask(__name__) app.config.from_object(Config) toolbar = DebugToolbarExtension(app) FlaskUUID(app) +app.csrf = CSRFProtect(app) login_manager = LoginManager() login_manager.init_app(app) -- cgit v1.2.3