summaryrefslogtreecommitdiff
path: root/client-qt/udm-client-qt/udm_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client-qt/udm-client-qt/udm_main.cpp')
-rw-r--r--client-qt/udm-client-qt/udm_main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/client-qt/udm-client-qt/udm_main.cpp b/client-qt/udm-client-qt/udm_main.cpp
index 3f94450..91cfb10 100644
--- a/client-qt/udm-client-qt/udm_main.cpp
+++ b/client-qt/udm-client-qt/udm_main.cpp
@@ -167,23 +167,26 @@ void udm_main::server_message_received(server_msg msg)
{
if(msg.auth_reply().status())
{
- auth_token = msg.auth_reply().auth_token().c_str();
+ auth_token = msg.auth_reply().auth_token();
//TODO: update client status
lbl_state->setText(tr("State") + ": " + tr("Connected") + ", " + tr("Authenticated"));
//request modules and settings here
{
client_msg msg;
msg.set_type(CLIENT_MSG_TYPE::CLIENT_CORE_INFO_REQUEST);
+ msg.set_auth_token(auth_token);
session->send_message(msg);
}
{
client_msg msg;
msg.set_type(CLIENT_MSG_TYPE::CLIENT_MODULES_REQUEST);
+ msg.set_auth_token(auth_token);
session->send_message(msg);
}
{
client_msg msg;
msg.set_type(CLIENT_MSG_TYPE::CLIENT_DOWNLOADS_LIST_REQUEST);
+ msg.set_auth_token(auth_token);
session->send_message(msg);
}
}