Commit 605c86f4 authored by Stan Hu's avatar Stan Hu

Merge branch 'ce-to-ee-2018-06-22' into 'master'

CE upstream - 2018-06-22 06:09 UTC

See merge request gitlab-org/gitlab-ee!6233
parents 0552e556 4cf67df7
---
title: Enable no-multi-assignment in JS files
merge_request: 19808
author: gfyoung
type: other
---
title: Enable no-restricted globals in JS files
merge_request: 19877
author: gfyoung
type: other
......@@ -15,6 +15,7 @@ function fatalError(message) {
// disable problematic options
webpackConfig.entry = undefined;
webpackConfig.mode = 'development';
webpackConfig.optimization.nodeEnv = false;
webpackConfig.optimization.runtimeChunk = false;
webpackConfig.optimization.splitChunks = false;
......
......@@ -187,7 +187,6 @@ module.exports = {
},
optimization: {
nodeEnv: false,
runtimeChunk: 'single',
splitChunks: {
maxInitialRequests: 4,
......
......@@ -21,3 +21,20 @@ To use reCAPTCHA, first you must create a site and private key.
6. Check the `Enable reCAPTCHA` checkbox
7. Save the configuration.
## Enabling reCAPTCHA for user logins via passwords
By default, reCAPTCHA is only enabled for user registrations. To enable it for
user logins via passwords, the `X-GitLab-Show-Login-Captcha` HTTP header must
be set. For example, in NGINX, this can be done via the `proxy_set_header`
configuration variable:
```
proxy_set_header X-GitLab-Show-Login-Captcha 1;
```
In GitLab Omnibus, this can be configured via `/etc/gitlab/gitlab.rb`:
```ruby
nginx['proxy_set_headers'] = { 'X-GitLab-Show-Login-Captcha' => 1 }
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment