diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-21 21:13:08 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-22 01:37:34 +0300 |
commit | 9b48d9f43f237ccf87594a944a00896996cadf55 (patch) | |
tree | 68213b3bda01cc793903ee91c6505294f0a1abca /app/views | |
parent | 6d2a48d52fc3b32eedd64d15cc23906f1871be7b (diff) |
Show a reCAPTCHA on signin page if custom header is set
This will only be displayed if `X-GitLab-Show-Login-Captcha` is set as an HTTP
header.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/devise/sessions/_new_base.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/devise/sessions/_new_base.html.haml b/app/views/devise/sessions/_new_base.html.haml index c45d2214592..0ee563ac066 100644 --- a/app/views/devise/sessions/_new_base.html.haml +++ b/app/views/devise/sessions/_new_base.html.haml @@ -12,5 +12,9 @@ %span Remember me .float-right.forgot-password = link_to "Forgot your password?", new_password_path(:user) + %div + - if captcha_enabled? + = recaptcha_tags + .submit-container.move-submit-down = f.submit "Sign in", class: "btn btn-save" |