From f2931220048f302d7578b9e6090db49a7baf83e4 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Mon, 10 Jul 2017 10:07:21 -0700 Subject: [PATCH] fix for signup captcha check when internet is not available --- app/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/create.rb b/app/create.rb index 172513bb..9829955b 100644 --- a/app/create.rb +++ b/app/create.rb @@ -30,7 +30,7 @@ post '/create_validate_all' do site = Site.new fields if site.valid? - return [].to_json if education_whitelisted? || params[:'g-recaptcha-response'] + return [].to_json if education_whitelisted? || params[:'g-recaptcha-response'] || self.class.test? return [['captcha', 'Please complete the captcha.']].to_json end