fukamachi / lack

Lack, the core of Clack
MIT License
148 stars 33 forks source link

Make CSRF key configurable #49

Closed MrLightningBolt closed 3 years ago

MrLightningBolt commented 3 years ago

This is a small change to the CSRF middleware to make the form input name configurable. This is helpful because it makes it easy to make the CSRF protection compatible with JS that's hardcoded to work with the CSRF protection built into e.g. Django.

fukamachi commented 3 years ago

Thanks!