Skip to content

Commit cdc40b8

Browse files
committed
fix: remove duplicate config option.
Had the same config setting twice in the structure.
1 parent 113fae5 commit cdc40b8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

roundup/configuration.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,18 +1331,6 @@ def str2value(self, value):
13311331
"""csrf_tokens have a limited lifetime. If they are not
13321332
used they are purged from the database after this
13331333
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-
"""),
13461334
(CsrfSettingOption, 'csrf_enforce_header_X-REQUESTED-WITH', "yes",
13471335
"""This is only used for xmlrpc and rest requests. This test is
13481336
done after Origin and Referer headers are checked. It only

0 commit comments

Comments
 (0)