Merge remote-tracking branch 'MaxGabriel/removeDeprecatedNonces'

Conflicts:
	yesod-test/Yesod/Test.hs
This commit is contained in:
Greg Weber 2015-08-20 17:36:08 -07:00
commit 80ea70c39e

View File

@ -75,8 +75,6 @@ module Yesod.Test
-- these functions to add the token to your request. -- these functions to add the token to your request.
, addToken , addToken
, addToken_ , addToken_
, addNonce
, addNonce_
, addTokenFromCookie , addTokenFromCookie
, addTokenFromCookieNamedToHeaderNamed , addTokenFromCookieNamedToHeaderNamed
@ -559,16 +557,6 @@ fileByLabel label path mime = do
name <- nameFromLabel label name <- nameFromLabel label
addFile name path mime addFile name path mime
-- | An alias for 'addToken_'.
addNonce_ :: Query -> RequestBuilder site ()
addNonce_ = addToken_
{-# DEPRECATED addNonce_ "Use 'addToken_' instead; 'addNonce_' will be removed in the next major version. Reasoning: Yesod's CSRF tokens are not actually nonces (one-time values), so yesod-form moved to calling them tokens instead. yesod-test is now using the word token as well. See https://github.com/yesodweb/yesod/issues/914 for details." #-}
-- | An alias for 'addToken'.
addNonce :: RequestBuilder site ()
addNonce = addToken
{-# DEPRECATED addNonce "Use 'addToken' instead; 'addNonce' will be removed in the next major version. Reasoning: Yesod's CSRF tokens are not actually nonces (one-time values), so yesod-form moved to calling them tokens instead. yesod-test is now using the word token as well. See https://github.com/yesodweb/yesod/issues/914 for details." #-}
-- | Lookups the hidden input named "_token" and adds its value to the params. -- | Lookups the hidden input named "_token" and adds its value to the params.
-- Receives a CSS selector that should resolve to the form element containing the token. -- Receives a CSS selector that should resolve to the form element containing the token.
-- --