windows portable: request elevation && run as system

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-09-26 16:23:09 +08:00
parent 77276dd78e
commit e1c2b8de6e
5 changed files with 82 additions and 4 deletions

View File

@@ -1354,7 +1354,11 @@ impl LoginConfigHandler {
username: self.id.clone(),
password: password.into(),
my_id,
my_name: crate::username(),
my_name: if cfg!(windows) {
crate::platform::get_active_username()
} else {
crate::username()
},
option: self.get_option_message(true).into(),
session_id: self.session_id,
version: crate::VERSION.to_string(),