Change variable name to web_api_url

This commit is contained in:
fearlessTobi 2018-09-12 19:07:06 +02:00
parent d408f89a91
commit b82bf1ccdb
8 changed files with 23 additions and 26 deletions

View file

@ -25,8 +25,8 @@ std::string UpdateCoreJWT(bool force_new_token, const std::string& username,
static std::string jwt;
if (jwt.empty() || force_new_token) {
if (!username.empty() && !token.empty()) {
std::future<Common::WebResult> future = PostJson(
Settings::values.web_services_endpoint_url + "/jwt/internal", username, token);
std::future<Common::WebResult> future =
PostJson(Settings::values.web_api_url + "/jwt/internal", username, token);
jwt = future.get().returned_data;
}
}