Skip to content

Commit dfa4db9

Browse files
authored
Merge pull request #3 from mzch/master
Fix CSRF error
2 parents a36efd6 + 99793e0 commit dfa4db9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

notebook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
minutes=SessionConst.SESSION_TTL.value)
3333

3434
# Protection against CSRF attack
35-
CSRFProtect(app)
35+
csrf = CSRFProtect(app)
36+
csrf.init_app(app)
3637

3738
# databases
3839
account_db = Account()

0 commit comments

Comments
 (0)