diff options
author | Stan Hu <stanhu@gmail.com> | 2015-12-28 16:59:59 -0800 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2015-12-29 11:03:54 +0100 |
commit | 54ba6bea2ee51149d156eb517a07f4b5b95823cd (patch) | |
tree | 5e8c2b398c7a8f68c62e879cab4021597d4e15bc | |
parent | 9a46778c297ba4a82758b8ccd5bc97421730c28e (diff) | |
download | gitlab-ce-recaptcha_to_stable.tar.gz |
When reCAPTCHA is disabled, allow registrations to go through without a coderecaptcha_to_stable
-rw-r--r-- | app/controllers/registrations_controller.rb | 2 |
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." |