elthran / RPG-Game

0 stars 1 forks source link

Switch to WTForm and CSRF security. #360

Open klondikemarlen opened 6 years ago

klondikemarlen commented 6 years ago

https://pythonhosted.org/Flask-WTF/csrf.html

In bash: $ pip3 install flask-wft $ pip3 install flask-csrf?

In ethranonline/__init__.py

from flask_wtf.csrf import CsrfProtect
# Ensbles CSRF protection
CsrfProtect(app)

Migrate all form code :P ... that sounds long.