fix for signup captcha check when internet is not available

This commit is contained in:
Kyle Drake 2017-07-10 10:07:21 -07:00
parent 2b56391f8f
commit f293122004

View file

@ -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