mastodon/app/views/auth
Claire 1b493c9fee Add optional hCaptcha support
Fixes #1649

This requires setting `HCAPTCHA_SECRET_KEY` and `HCAPTCHA_SITE_KEY`, then
enabling the admin setting at
`/admin/settings/edit#form_admin_settings_captcha_enabled`

Subsequently, a hCaptcha widget will be displayed on `/about` and
`/auth/sign_up` unless:
- the user is already signed-up already
- the user has used an invite link
- the user has already solved the captcha (and registration failed for another
  reason)

The Content-Security-Policy headers are altered automatically to allow the
third-party hCaptcha scripts on `/about` and `/auth/sign_up` following the same
rules as above.
2022-01-24 21:22:13 +01:00
..
challenges Add password challenge to 2FA settings, e-mail notifications (#11878) 2019-09-18 16:37:27 +02:00
confirmations Change unconfirmed user login behaviour (#11375) 2019-07-22 10:48:50 +02:00
passwords Add client-side validation in password change forms (#14564) 2020-08-12 12:11:15 +02:00
registrations Add optional hCaptcha support 2022-01-24 21:22:13 +01:00
sessions Merge branch 'main' into glitch-soc/merge-upstream 2022-01-23 18:24:01 +01:00
setup Change account deletion page to have better explanations (#11753) 2019-09-04 04:13:54 +02:00
shared Add OMNIAUTH_ONLY environment variable to enforce externa log-in (#17288) 2022-01-23 15:52:58 +01:00