Fix CSRF deprecated warning
Merge pull request #1226 from halfdan/csrf-token

Fix CSRF propery deprecated warning