Commit e619d0b6 authored by Stan Hu's avatar Stan Hu

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

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