Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-12-29 03:59:59 +0300
committerMarin Jankovski <maxlazio@gmail.com>2015-12-29 13:13:58 +0300
commit1ae157a3fe740fc6947d91733bd367c27cae80a0 (patch)
tree01ab49990e03826e44e0b7f7bcc2328d3276ef40
parentb3ce9a1d24321b465c8aff57386b8c08d0e72e13 (diff)
When reCAPTCHA is disabled, allow registrations to go through without a code
-rw-r--r--app/controllers/registrations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index 485aaf45b01..c48175a4c5a 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -7,7 +7,7 @@ class RegistrationsController < Devise::RegistrationsController
end
def create
- if Gitlab::Recaptcha.load_configurations! && verify_recaptcha
+ if !Gitlab::Recaptcha.load_configurations! || verify_recaptcha
super
else
flash[:alert] = "There was an error with the reCAPTCHA code below. Please re-enter the code."