Popravek, da preveri tudi ce je paket 3.

This commit is contained in:
Robert 2022-03-04 15:52:17 +01:00
parent 0ee77f2d33
commit eacf8c6213

View File

@ -1349,7 +1349,7 @@ class UserNarocila{
}
// Preverimo ReCaptcha
if (in_array($paket, [1,2]) && AppSettings::getInstance()->getSetting('google-secret_captcha') !== false) {
if (in_array($paket, [1,2,3]) && AppSettings::getInstance()->getSetting('google-secret_captcha') !== false) {
$recaptchaResponse = isset($narocilo_data['g-recaptcha-response']) ? $narocilo_data['g-recaptcha-response'] : '';
$requestReCaptcha = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=' . AppSettings::getInstance()->getSetting('google-secret_captcha') . '&response=' . $recaptchaResponse);