Remove deprecated addNonce and addNonce_
This commit is contained in:
parent
5d431fbdb5
commit
3de93e3197
@ -75,8 +75,6 @@ module Yesod.Test
|
||||
-- these functions to add the token to your request.
|
||||
, addToken
|
||||
, addToken_
|
||||
, addNonce
|
||||
, addNonce_
|
||||
|
||||
-- * Assertions
|
||||
, assertEqual
|
||||
@ -555,16 +553,6 @@ fileByLabel label path mime = do
|
||||
name <- nameFromLabel label
|
||||
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.
|
||||
-- Receives a CSS selector that should resolve to the form element containing the token.
|
||||
--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user