Add dynamic captcha support

This commit is contained in:
Zankaria
2024-05-25 00:32:44 +02:00
committed by Zankaria
parent e16dc142b7
commit e825e7aac5
4 changed files with 44 additions and 1 deletions

View File

@@ -648,7 +648,7 @@ if (isset($_POST['delete'])) {
}
}
// Remote 3rd party captchas.
else {
else if (!$config['dynamic_captcha'] || $config['dynamic_captcha'] === $_SERVER['REMOTE_ADDR']) {
// recaptcha
if ($config['recaptcha']) {
if (!isset($_POST['g-recaptcha-response'])) {