mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
fixes for hcaptcha, add to dmca form
This commit is contained in:
parent
79cdd06b19
commit
2821f513f1
9 changed files with 32 additions and 25 deletions
|
@ -9,7 +9,7 @@ post '/contact' do
|
|||
@errors << 'Please fill out all fields'
|
||||
end
|
||||
|
||||
unless verify_hcaptcha
|
||||
unless hcaptcha_valid?
|
||||
@errors << 'Captcha was not filled out (or was filled out incorrectly)'
|
||||
end
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ post '/dmca/contact' do
|
|||
@errors << 'Please fill out all fields'
|
||||
end
|
||||
|
||||
if !recaptcha_valid?
|
||||
if !hcaptcha_valid?
|
||||
@errors << 'Captcha was not filled out (or was filled out incorrectly)'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue