MCPcopy Create free account
hub / github.com/chrxh/alien / refreshLogin

Method refreshLogin

source/Network/NetworkService.cpp:214–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void 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
233bool NetworkService::deleteUser()
234{

Callers 1

processRequestMethod · 0.80

Calls 4

logFunction · 0.85
configureClientFunction · 0.85
executeRequestFunction · 0.85
PostMethod · 0.80

Tested by

no test coverage detected