From 649fa40656e58a5e6bc64fa1779f599e2b4f260b Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 29 Nov 2020 10:37:44 +0100 Subject: [PATCH] Improve recaptcha detection Recaptcha form can be served from different domains, so look for the form class instead. --- src/website.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/website.cpp b/src/website.cpp index 7fbf0b6..1b887e0 100644 --- a/src/website.cpp +++ b/src/website.cpp @@ -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