When reCAPTCHA is disabled, allow registrations to go through without a code

This commit is contained in:
Stan Hu 2015-12-28 16:59:59 -08:00
parent a3469d914a
commit e619d0b615
1 changed files with 1 additions and 1 deletions

View File

@ -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."