This commit is contained in:
parent
70e5bee519
commit
6003003228
@ -902,7 +902,10 @@ pub fn get_sysinfo() -> serde_json::Value {
|
||||
});
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
{
|
||||
out["username"] = json!(crate::platform::get_active_username());
|
||||
let username = crate::platform::get_active_username();
|
||||
if !username.is_empty() && (!cfg!(windows) || username != "SYSTEM") {
|
||||
out["username"] = json!(username);
|
||||
}
|
||||
}
|
||||
out
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user