Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

turnstile #3158

Merged
merged 18 commits into from
Apr 24, 2024
Merged

turnstile #3158

merged 18 commits into from
Apr 24, 2024

Conversation

joleeee
Copy link
Contributor

@joleeee joleeee commented Apr 3, 2024

Frontend

dotkom/onlineweb-frontend#728

Video demonstrating ow4 and ow frontend

The first shows when auto fails and it becomes interactive, so worst case it's a click. Best case (very common), no click, like in the second part of the video.

Screen.Recording.2024-04-10.at.20.51.44.mov

@henrikskog
Copy link
Contributor

Ah this is so nice!

apps/events/forms.py Outdated Show resolved Hide resolved
onlineweb4/settings/base.py Outdated Show resolved Hide resolved
onlineweb4/settings/base.py Outdated Show resolved Hide resolved
apps/events/tests/view_tests.py Outdated Show resolved Hide resolved
Comment on lines +279 to +280
registration_start=timezone.now() - timedelta(days=1),
registration_end=timezone.now() + timedelta(days=1),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette burde fikses i generate_event i stedet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neida

Comment on lines 286 to 294
self.assertInMessages("Du klarte ikke captchaen! Er du en bot?", response)
self.assertRedirects(response, event.get_absolute_url())
self.assertInMessages("Vennligst vis at du er human.", response)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette er jo to forskjellige feil, "Du klarte ikke" vs "Du glemte" (nå "vennligst vis"), aka forskjellen mellom at captcha-responsen er med eller om innholdet er ugyldig, slik jeg forstår skal denne testen være for at den er med, men ugyldig, men du har endret den til å teste om den mangler?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det er den tidligere som viste feil, required og invalid var satt til samme streng

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fiksa også den her, står ikke human lenger men heller den nye fiksa

@joleeee joleeee changed the title basic turnstile turnstile Apr 24, 2024
@joleeee joleeee enabled auto-merge April 24, 2024 18:06
@joleeee joleeee added this pull request to the merge queue Apr 24, 2024
@henrikhorluck henrikhorluck removed this pull request from the merge queue due to a manual request Apr 24, 2024
@joleeee joleeee enabled auto-merge April 24, 2024 19:16
@joleeee joleeee added this pull request to the merge queue Apr 24, 2024
Merged via the queue into main with commit 67f1220 Apr 24, 2024
6 checks passed
@joleeee joleeee deleted the turnstile branch April 24, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants