Change captcha to be presented even for invited users (#2227)

pull/62/head
Claire 2023-05-25 20:13:18 +02:00 committed by GitHub
parent 69903b5830
commit 646cde71d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -57,9 +57,6 @@ class Auth::ConfirmationsController < Devise::ConfirmationsController
def captcha_user_bypass? def captcha_user_bypass?
return true if @confirmation_user.nil? || @confirmation_user.confirmed? return true if @confirmation_user.nil? || @confirmation_user.confirmed?
invite = Invite.find(@confirmation_user.invite_id) if @confirmation_user.invite_id.present?
invite.present? && !invite.max_uses.nil?
end end
def set_pack def set_pack

View File

@ -6,7 +6,7 @@ en:
batch_error: 'An error occurred: %{message}' batch_error: 'An error occurred: %{message}'
settings: settings:
captcha_enabled: captcha_enabled:
desc_html: This relies on external scripts from hCaptcha, which may be a security and privacy concern. In addition, <strong>this can make the registration process significantly less accessible to some (especially disabled) people</strong>. For these reasons, please consider alternative measures such as approval-based or invite-based registration.<br>Users that have been invited through a limited-use invite will not need to solve a CAPTCHA desc_html: This relies on external scripts from hCaptcha, which may be a security and privacy concern. In addition, <strong>this can make the registration process significantly less accessible to some (especially disabled) people</strong>. For these reasons, please consider alternative measures such as approval-based or invite-based registration.
title: Require new users to solve a CAPTCHA to confirm their account title: Require new users to solve a CAPTCHA to confirm their account
flavour_and_skin: flavour_and_skin:
title: Flavour and skin title: Flavour and skin