Commit 1ae157a3 authored by Stan Hu's avatar Stan Hu Committed by Marin Jankovski

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

parent b3ce9a1d
......@@ -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