diff options
| author | Liang Sun <i@liangsun.org> | 2012-03-09 09:52:22 +0800 |
|---|---|---|
| committer | sunliang <sunliang@bar.(none)> | 2012-03-09 09:52:41 +0800 |
| commit | 08436915f029ea998022888782b6ef2f5224ba32 (patch) | |
| tree | dcb8990ca7a9b8e6379517e2c9a8e31765b3db70 | |
| parent | ff62796566c254a79521898ed7906288acaed24f (diff) | |
| download | pyramid-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.py | 2 |
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 |
