diff --git a/stack.yaml b/stack.yaml index c99d451b..d57283c3 100644 --- a/stack.yaml +++ b/stack.yaml @@ -14,8 +14,8 @@ packages: - ./yesod-eventsource - ./yesod-websockets - location: - git: https://github.com/pseudonom/persistent.git - commit: 1b7b70ed5d36adaffaf4cf9927fefcf16fec8969 + git: https://github.com/yesodweb/persistent.git + commit: 4cb12ad1e240d190647ea75f1bc784fa6b5b7cc2 subdirs: - persistent @@ -23,3 +23,4 @@ packages: extra-deps: - wai-app-static-3.1.4.1 - http-api-data-0.2 +- yaml-0.8.17 diff --git a/yesod-auth/ChangeLog.md b/yesod-auth/ChangeLog.md index aa6b0669..939da340 100644 --- a/yesod-auth/ChangeLog.md +++ b/yesod-auth/ChangeLog.md @@ -1,3 +1,7 @@ +## 1.4.13.1 + +* Add CSRF token to login form from `Yesod.Auth.Dummy` [#1205](https://github.com/yesodweb/yesod/pull/1205) + ## 1.4.13 * Add a CSRF token to the login form from `Yesod.Auth.Hardcoded`, making it compatible with the CSRF middleware [#1161](https://github.com/yesodweb/yesod/pull/1161) diff --git a/yesod-auth/Yesod/Auth/Dummy.hs b/yesod-auth/Yesod/Auth/Dummy.hs index 91e56601..9e4611d6 100644 --- a/yesod-auth/Yesod/Auth/Dummy.hs +++ b/yesod-auth/Yesod/Auth/Dummy.hs @@ -20,10 +20,13 @@ authDummy = lift $ setCredsRedirect $ Creds "dummy" ident [] dispatch _ _ = notFound url = PluginR "dummy" [] - login authToMaster = + login authToMaster = do + request <- getRequest toWidget [hamlet| $newline never