Implement CSRF
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user