| 212 | } |
| 213 | |
| 214 | void NetworkService::refreshLogin() |
| 215 | { |
| 216 | if (_loggedInUserName && _password) { |
| 217 | log(Priority::Important, "network: refresh login"); |
| 218 | |
| 219 | httplib::SSLClient client(_serverAddress); |
| 220 | configureClient(client); |
| 221 | |
| 222 | httplib::Params params; |
| 223 | params.emplace("userName", *_loggedInUserName); |
| 224 | params.emplace("password", *_password); |
| 225 | |
| 226 | try { |
| 227 | executeRequest([&] { return client.Post("/alien-server/refreshlogin.php", params); }); |
| 228 | } catch (...) { |
| 229 | } |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | bool NetworkService::deleteUser() |
| 234 | { |
no test coverage detected