Implement CSRF

This commit is contained in:
2022-07-10 20:32:29 +01:00
parent c7ead8d4fd
commit 3ad51ee1a3
5 changed files with 15 additions and 3 deletions

View File

@ -2,11 +2,15 @@
"""Main module."""
from app.app import app
import os
from app.app import app, csrf
def main():
"""Run the app."""
app.secret_key = os.urandom(12).hex()
csrf.init_app(app)
app.run()