mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix for signup captcha check when internet is not available
This commit is contained in:
parent
2b56391f8f
commit
f293122004
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue