Skip to content

Commit

Permalink
always fail on server side by default
Browse files Browse the repository at this point in the history
  • Loading branch information
joleeee committed Apr 24, 2024
1 parent 805e6ab commit 67f1220
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions apps/events/tests/view_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,6 @@ def test_attend_not_accepted_rules(self):
self.assertInMessages("Du må godta prikkereglene!", response)

def test_attend_invalid_captcha(self):
# validation THROWS, it does not return a boolean
# therefoer we dont even overwrite it

event = G(Event)
G(
AttendanceEvent,
Expand Down
4 changes: 2 additions & 2 deletions onlineweb4/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ def get_stats_file() -> str:

TURNSTILE_SITEKEY = config(
"OW4_TURNSTILE_PUBLIC_KEY",
default="1x00000000000000000000AA",
default="1x00000000000000000000AA", # always pass
)
TURNSTILE_SECRET = config(
"OW4_TURNSTILE_PRIVATE_KEY",
default="1x0000000000000000000000000000000AA",
default="2x0000000000000000000000000000000AA", # always fail
)
TURNSTILE_DEFAULT_CONFIG = {"theme": "light"}

Expand Down

0 comments on commit 67f1220

Please sign in to comment.