Skip to content

Commit 67f1220

Browse files
committed
always fail on server side by default
1 parent 805e6ab commit 67f1220

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/events/tests/view_tests.py

-3
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,6 @@ def test_attend_not_accepted_rules(self):
269269
self.assertInMessages("Du må godta prikkereglene!", response)
270270

271271
def test_attend_invalid_captcha(self):
272-
# validation THROWS, it does not return a boolean
273-
# therefoer we dont even overwrite it
274-
275272
event = G(Event)
276273
G(
277274
AttendanceEvent,

onlineweb4/settings/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def get_stats_file() -> str:
107107

108108
TURNSTILE_SITEKEY = config(
109109
"OW4_TURNSTILE_PUBLIC_KEY",
110-
default="1x00000000000000000000AA",
110+
default="1x00000000000000000000AA", # always pass
111111
)
112112
TURNSTILE_SECRET = config(
113113
"OW4_TURNSTILE_PRIVATE_KEY",
114-
default="1x0000000000000000000000000000000AA",
114+
default="2x0000000000000000000000000000000AA", # always fail
115115
)
116116
TURNSTILE_DEFAULT_CONFIG = {"theme": "light"}
117117

0 commit comments

Comments
 (0)