Add OS and arch in auth request #4933

This commit is contained in:
Xinyu Hou 2015-10-27 15:50:34 -07:00
parent 32da441fc0
commit 4d20a3ce91
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ ToolApp::loginAuth()
ss << JSON_URL << "auth/";
ss << "?email=" << ARCH->internet().urlEncode(email);
ss << "&password=" << password;
ss << "&os=" << ARCH->internet().urlEncode(ARCH->getOSName());
ss << "&arch=" << ARCH->internet().urlEncode(ARCH->getPlatformName());
std::cout << ARCH->internet().get(ss.str()) << std::endl;
}