summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiang Sun <i@liangsun.org>2012-03-09 09:52:22 +0800
committersunliang <sunliang@bar.(none)>2012-03-09 09:52:41 +0800
commit08436915f029ea998022888782b6ef2f5224ba32 (patch)
treedcb8990ca7a9b8e6379517e2c9a8e31765b3db70
parentff62796566c254a79521898ed7906288acaed24f (diff)
downloadpyramid-08436915f029ea998022888782b6ef2f5224ba32.tar.gz
pyramid-08436915f029ea998022888782b6ef2f5224ba32.tar.bz2
pyramid-08436915f029ea998022888782b6ef2f5224ba32.zip
To make the dummy csrf token has the same length as a real one.
-rw-r--r--pyramid/testing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/testing.py b/pyramid/testing.py
index d32a7fe0b..40e90cda6 100644
--- a/pyramid/testing.py
+++ b/pyramid/testing.py
@@ -632,7 +632,7 @@ class DummySession(dict):
return storage
def new_csrf_token(self):
- token = 'csrft'
+ token = '0123456789012345678901234567890123456789'
self['_csrft_'] = token
return token