File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -1331,18 +1331,6 @@ def str2value(self, value):
1331
1331
"""csrf_tokens have a limited lifetime. If they are not
1332
1332
used they are purged from the database after this
1333
1333
number of minutes. Default (20160) is 2 weeks.""" ),
1334
- (CsrfSettingOption , 'csrf_enforce_token' , "yes" ,
1335
- """How do we deal with @csrf fields in posted forms.
1336
- Set this to 'required' to block the post and notify
1337
- the user if the field is missing or invalid.
1338
- Set this to 'yes' to block the post and notify the user
1339
- if the token is invalid, but accept the form if
1340
- the field is missing.
1341
- Set this to 'logfailure' to log a notice to the roundup
1342
- log if the field is invalid or missing, but accept
1343
- the post.
1344
- Set this to 'no' to ignore the field and accept the post.
1345
- """ ),
1346
1334
(CsrfSettingOption , 'csrf_enforce_header_X-REQUESTED-WITH' , "yes" ,
1347
1335
"""This is only used for xmlrpc and rest requests. This test is
1348
1336
done after Origin and Referer headers are checked. It only
You can’t perform that action at this time.
0 commit comments