From 08436915f029ea998022888782b6ef2f5224ba32 Mon Sep 17 00:00:00 2001 From: Liang Sun Date: Fri, 9 Mar 2012 09:52:22 +0800 Subject: To make the dummy csrf token has the same length as a real one. --- pyramid/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3