Popravek, da preveri tudi ce je paket 3.
This commit is contained in:
parent
0ee77f2d33
commit
eacf8c6213
@ -1349,7 +1349,7 @@ class UserNarocila{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Preverimo ReCaptcha
|
// 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'] : '';
|
$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);
|
$requestReCaptcha = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=' . AppSettings::getInstance()->getSetting('google-secret_captcha') . '&response=' . $recaptchaResponse);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user