mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49:17 +01:00
Improve recaptcha detection
Recaptcha form can be served from different domains, so look for the form class instead.
This commit is contained in:
parent
dbd3514c1d
commit
649fa40656
@ -270,7 +270,7 @@ int Website::Login(const std::string& email, const std::string& password)
|
||||
std::cerr << "DEBUG INFO (Website::Login)" << std::endl;
|
||||
std::cerr << login_form_html << std::endl;
|
||||
#endif
|
||||
if (login_form_html.find("google.com/recaptcha") != std::string::npos)
|
||||
if (login_form_html.find("class=\"g-recaptcha form__recaptcha\"") != std::string::npos)
|
||||
{
|
||||
bRecaptcha = true;
|
||||
#ifndef USE_QT_GUI_LOGIN
|
||||
|
Loading…
Reference in New Issue
Block a user