diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-25 22:37:12 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-01-25 23:09:48 +0100 |
commit | 0fb907441c827cadc767641b29d5d2c0e554f7a4 (patch) | |
tree | 1b81363e29a44a99e48c28246b572031d0d2b7db /app/views/auth | |
parent | a9269f8786033eecf0ad307c75f5717c5ab468a2 (diff) |
Add ability to set hCaptcha either on registration form or on e-mail validation
Upshot of CAPTCHA on e-mail validation is it does not need to break the in-band registration API.
Diffstat (limited to 'app/views/auth')
-rw-r--r-- | app/views/auth/confirmations/captcha.html.haml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/auth/confirmations/captcha.html.haml b/app/views/auth/confirmations/captcha.html.haml new file mode 100644 index 000000000..850bc1479 --- /dev/null +++ b/app/views/auth/confirmations/captcha.html.haml @@ -0,0 +1,11 @@ +- content_for :page_title do + = t('auth.confirm_captcha') + += form_tag auth_captcha_confirmation_url, method: 'POST', class: 'simple_form' do + = hidden_field_tag :confirmation_token, params[:confirmation_token] + + .field-group + = render_captcha_if_needed + + .actions + %button.button= t('challenge.continue') |