summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-01 22:10:22 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-01 22:10:22 -0700
commit6fa603c92b3329a6e49b8baa0ba68489a0ebfba8 (patch)
tree4a6b2825306e257bc90528e439d2b2d242b1e3e3 /python
parent4a08a4ef405e451db0a8251c05a193874b64cddb (diff)
downloadfatcat-6fa603c92b3329a6e49b8baa0ba68489a0ebfba8.tar.gz
fatcat-6fa603c92b3329a6e49b8baa0ba68489a0ebfba8.zip
add necessary CSRF invocation to entrypoint
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/__init__.py3
1 files changed, 3 insertions, 0 deletions
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)