Fix login

GOG made some changes to their website which caused the regex in Downloader::HTTP_Login to match wrong auth url.
This commit is contained in:
Sude 2014-10-19 18:33:23 +03:00
parent d0986542ef
commit ec79a18cf5

View File

@ -1754,7 +1754,7 @@ int Downloader::HTTP_Login(const std::string& email, const std::string& password
if (script_it->text().find("GalaxyAccounts") != std::string::npos)
{
boost::match_results<std::string::const_iterator> what;
boost::regex expression(".*'(http.*)'.*");
boost::regex expression(".*'(https://auth.gog.com/.*)'.*");
boost::regex_match(script_it->text(), what, expression);
auth_url = what[1];
break;