diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-15 01:04:42 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-15 01:04:42 +0300 |
commit | 0b43c1027f712567d654c3e61c6557db1f4e2faa (patch) | |
tree | f16a5bb2a24e3d0373f02bb576d14be09eac9793 /app/views/devise | |
parent | 3cae58b3a39153970efd1da90235d7ecd5a59b68 (diff) | |
parent | cdbe66490fe9d4d664562ee21e4b1be28298b411 (diff) |
Merge branch '46548-open-source-alternative-to-recaptcha-for-gitlab-com-registration' into 'master'
Open source alternative to reCAPTCHA for GitLab.com registration
See merge request gitlab-org/gitlab-ce!31625
Diffstat (limited to 'app/views/devise')
-rw-r--r-- | app/views/devise/shared/_signup_box.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/devise/shared/_signup_box.html.haml b/app/views/devise/shared/_signup_box.html.haml index 074edf645ba..2cd77af6877 100644 --- a/app/views/devise/shared/_signup_box.html.haml +++ b/app/views/devise/shared/_signup_box.html.haml @@ -5,6 +5,8 @@ = form_for(resource, as: "new_#{resource_name}", url: registration_path(resource_name), html: { class: "new_new_user gl-show-field-errors", "aria-live" => "assertive" }) do |f| .devise-errors = render "devise/shared/error_messages", resource: resource + - if Feature.enabled?(:invisible_captcha) + = invisible_captcha .name.form-group = f.label :name, _('Full name'), class: 'label-bold' = f.text_field :name, class: "form-control top js-block-emoji js-validate-length", :data => { :max_length => max_name_length, :max_length_message => s_("SignUp|Name is too long (maximum is %{max_length} characters).") % { max_length: max_name_length }, :qa_selector => 'new_user_name_field' }, required: true, title: _("This field is required.") |