Skip to content
Snippets Groups Projects
Commit e619d0b6 authored by Stan Hu's avatar Stan Hu
Browse files

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

parent a3469d91
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment