increase the size of CSRF token

This commit is contained in:
Andrei Mikhailov 2020-05-01 00:40:11 -03:00
parent 7f37d2b6fa
commit c39b165ff3
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# ChangeLog for yesod-core
## 1.6.18.1
* Increase the size of CSRF token
## 1.6.18
* Add functions for setting description and OG meta [#1663](https://github.com/yesodweb/yesod/pull/1663)

View File

@ -129,7 +129,7 @@ parseWaiRequest env session useToken mmaxBodySize =
-- Already have a token, use it.
Just bs -> Left $ Just $ decodeUtf8With lenientDecode bs
-- Don't have a token, get a random generator and make a new one.
Nothing -> Right $ fmap Just . randomString 10
Nothing -> Right $ fmap Just . randomString 40
| otherwise = Left Nothing
textQueryString :: W.Request -> [(Text, Text)]

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.6.18
version: 1.6.18.1
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>