Skip to content

Commit

Permalink
recaptcha todo
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Jan 16, 2025
1 parent 23b1518 commit 4ddd702
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### Issues

- [ ] Mark the mandatory fields properly
- [ ] Set up captcha validation (set the `g-recaptcha-response` input, see `twopercent.js:183`)
- [ ] Complete the flow (add a `success & download` page)
- [ ] The modal doesn't disappear when clicked outside it
- [ ] Checks need to be done before the button to open the modal is clicked
Expand Down
3 changes: 3 additions & 0 deletions backend/templates/v2/form/donation.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ <h1>

<fieldset class="mt-10 grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-5">

{# TODO: reCAPTCHA doesn't work right now #}
<div class="g-recaptcha" data-sitekey="{{ captcha_public_key }}" data-size="invisible" data-callback="onSubmit"></div>

<div class="sm:col-span-2 sm:col-start-1 mt-2">
{% trans "Last name" as input_title %}
{% include "components/input/input.html" with input_id="last_name" input_type="text" input_name="last_name" input_autocomplete="family-name" is_required=True %}
Expand Down

0 comments on commit 4ddd702

Please sign in to comment.