When reCAPTCHA is disabled, allow registrations to go through without a code
This commit is contained in:
parent
a3469d914a
commit
e619d0b615
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue