diff options
| author | jacob1 <jfu614@gmail.com> | 2013-07-18 20:33:59 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-07-18 20:33:59 (GMT) |
| commit | aa59c89fa2c401607adc7ac9a016537691602e6d (patch) | |
| tree | 73ea3eba78704bc1bab3f88f4a8ecf2246bc9505 /src/client/Client.cpp | |
| parent | fe78593ca284d6bfc06459264d400773796a42dc (diff) | |
| download | powder-aa59c89fa2c401607adc7ac9a016537691602e6d.zip powder-aa59c89fa2c401607adc7ac9a016537691602e6d.tar.gz | |
logging in in the save preview will update the login button on the main screen
Diffstat (limited to 'src/client/Client.cpp')
| -rw-r--r-- | src/client/Client.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 25fd430..a9f7032 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -1273,7 +1273,6 @@ RequestBroker::Request * Client::GetUserInfoAsync(std::string username) LoginStatus Client::Login(std::string username, std::string password, User & user) { lastError = ""; - std::stringstream urlStream; std::stringstream hashStream; char passwordHash[33]; char totalHash[33]; @@ -1296,7 +1295,6 @@ LoginStatus Client::Login(std::string username, std::string password, User & use char * postDatas[] = { (char*)username.c_str(), totalHash }; int postLengths[] = { username.length(), 32 }; data = http_multipart_post("http://" SERVER "/Login.json", postNames, postDatas, postLengths, NULL, NULL, NULL, &dataStatus, &dataLength); - //data = http_auth_get("http://" SERVER "/Login.json", (char*)username.c_str(), (char*)password.c_str(), NULL, &dataStatus, &dataLength); if(dataStatus == 200 && data) { try @@ -1355,9 +1353,7 @@ LoginStatus Client::Login(std::string username, std::string password, User & use lastError = http_ret_text(dataStatus); } if(data) - { free(data); - } return LoginError; } |
