recaptcha v3 snippet problem

dariesto

Client
Регистрация
03.11.2011
Сообщения
124
Благодарностей
9
Баллы
18
Hi,

After getting token from "Recognizing Recaptcha3" action, I'm trying to use veryfication snippet (form here: https://zennolab.com/wiki/en:addons:capmonster:rc3#working-with-token), but I'm not sure if I'm doing it correctly, below is code with binded project variables:

Код:
var sitekey = project.Variables["siteKey"].Value ; //SiteKey
string newToken = project.Variables["recaptcha_token"].Value ; //New Token
string replaceRegex = @"(?<=\[""rresp"","").*?(?="")";
instance.ChangeResponse("https://www.google.com/recaptcha/api2/reload\\?k="+sitekey,
                        new List<string> {replaceRegex}, new List<string> {newToken}, false);
                       
                       
project.Variables["recaptcha_token"].Value = newToken ; //New Token
I will be grateful for checking and finding what could be wrong, because I have no success to go through website secured with recaptcha v3.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 190
Благодарностей
5 831
Баллы
113
Did you put required values into variables in your project?

project.Variables["siteKey"].Value ; //SiteKey
project.Variables["recaptcha_token"].Value ; //New Token
 

dariesto

Client
Регистрация
03.11.2011
Сообщения
124
Благодарностей
9
Баллы
18
yes as shown below:

upload_2019-7-31_16-20-41.png
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 190
Благодарностей
5 831
Баллы
113

dariesto

Client
Регистрация
03.11.2011
Сообщения
124
Благодарностей
9
Баллы
18
upload_2019-8-10_23-5-40.png
 

dariesto

Client
Регистрация
03.11.2011
Сообщения
124
Благодарностей
9
Баллы
18

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)