diff options
author | Alex Buijs <abuijs@gitlab.com> | 2019-08-09 18:40:54 +0300 |
---|---|---|
committer | Alex Buijs <abuijs@gitlab.com> | 2019-08-10 13:24:53 +0300 |
commit | a8da0de528f3a522c6d77b92ca5621c63ae9a69a (patch) | |
tree | 0d2d2327ddab83dc97bd84bd3a538d2dfa39acfa /app/views/devise | |
parent | 456c0691cd1a7f73d8e2e5bcf3d47372c8db27be (diff) |
Add invisible captcha
With a time treshold of 4 seconds
and a firstname and lastname honeypot
input fields when signing up
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.") |