summaryrefslogtreecommitdiff
path: root/app/views/devise
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-12-27 09:03:06 -0800
committerStan Hu <stanhu@gmail.com>2015-12-27 09:04:11 -0800
commit9f7d379c2a018c86671bfc157fe1f0cf4e31e25e (patch)
tree3b0a9032c050138c3ad9a681f790da9fae65ee51 /app/views/devise
parenta52746649d1db4f52ae4e989dcf654ef4af57905 (diff)
downloadgitlab-ce-9f7d379c2a018c86671bfc157fe1f0cf4e31e25e.tar.gz
Add support for Google reCAPTCHA in user registration to prevent spammers
Diffstat (limited to 'app/views/devise')
-rw-r--r--app/views/devise/shared/_signup_box.html.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/devise/shared/_signup_box.html.haml b/app/views/devise/shared/_signup_box.html.haml
index 9dc6aeffd59..3c079d7e2f8 100644
--- a/app/views/devise/shared/_signup_box.html.haml
+++ b/app/views/devise/shared/_signup_box.html.haml
@@ -18,6 +18,9 @@
.form-group.append-bottom-20#password-strength
= f.password_field :password, class: "form-control bottom", id: "user_password_sign_up", placeholder: "Password", required: true
%div
+ - if Gitlab.config.recaptcha.enabled
+ = recaptcha_tags
+ %div
= f.submit "Sign up", class: "btn-create btn"
.clearfix.prepend-top-20