mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 02:41:17 +00:00
Merge branch 'main' of https://github.com/OrcaSlicer/OrcaSlicer_priv into feat/printer-agent-impl
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <iostream>
|
||||
#include <libslic3r/Platform.hpp>
|
||||
#include <memory>
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <openssl/evp.h>
|
||||
#include <openssl/hmac.h>
|
||||
#include <openssl/rand.h>
|
||||
@@ -869,9 +870,11 @@ std::string OrcaCloudServiceAgent::build_login_cmd()
|
||||
display_name = "unknown name";
|
||||
}
|
||||
json cmd;
|
||||
cmd["command"] = "orca_userlogin";
|
||||
cmd["data"]["name"] = display_name;
|
||||
cmd["data"]["avatar"] = get_user_avatar();
|
||||
cmd["command"] = "orca_userlogin";
|
||||
cmd["data"]["name"] = display_name;
|
||||
cmd["data"]["avatar"] = get_user_avatar();
|
||||
// The unique handle, shown under the display name in the homepage account menu.
|
||||
cmd["data"]["account"] = get_user_name();
|
||||
return cmd.dump();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user