Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Removed reCaptcha label See https://github.com/mirumee/saleor/pull/2134#discussion_r188426716

NyanKiyoshi513bd0bdc8a8
diff --git a/saleor/account/forms.py b/saleor/account/forms.py
index 0b7a3119e0..7428ca893f 100644
--- a/saleor/account/forms.py
+++ b/saleor/account/forms.py
@@ -13,8 +13,10 @@ from .i18n import AddressMetaForm, get_address_form_class
class FormWithReCaptcha(forms.BaseForm):
def __new__(cls, *args, **kwargs):
if settings.ENABLE_RECAPTCHA:
- cls.base_fields['_captcha'] = ReCaptchaField(
- label=pgettext_lazy('Captcha field label', 'Are you human?'))
+ # insert a Google reCaptcha field inside the form
+ # note: label is empty, the reCaptcha is self-explanatory making
+ # the form simpler for the user.
+ cls.base_fields['_captcha'] = ReCaptchaField(label='')
return super(FormWithReCaptcha, cls).__new__(cls)