feat: add connections without sending passwords

Add Without password actions and pass the selection through desktop,
mobile and Web sessions. Omit the password when constructing LoginRequest,
preserve saved credentials, and reuse the existing approval and OS login
dialogs. Keep protocol and controlled-side authentication changes separate.
This commit is contained in:
21pages committed 2026-10-31 12:08:07 +08:00
1 parent ef827fdb34
commit 956031d109
87 files changed
+853 -23

No files matched your search

+5 -1
View File
@@ -73,6 +73,7 @@ pub fn core_main() -> Option<CoreMainAction> {
"--view-camera",
"--port-forward",
"--terminal",
"--terminal-admin",
"--rdp",
]
.contains(&arg.as_str())
@@ -763,7 +764,7 @@ fn core_main_invoke_new_connection(mut args: std::env::Args) -> Option<Vec<Strin
while let Some(arg) = args.next() {
match arg.as_str() {
"--connect" | "--play" | "--file-transfer" | "--view-camera" | "--port-forward"
| "--terminal" | "--rdp" => {
| "--terminal" | "--terminal-admin" | "--rdp" => {
authority = Some((&arg.to_string()[2..]).to_owned());
id = args.next();
}
@@ -775,6 +776,9 @@ fn core_main_invoke_new_connection(mut args: std::env::Args) -> Option<Vec<Strin
"--relay" => {
param_array.push(format!("relay=true"));
}
"--without-password" => {
param_array.push("without-password=true".to_owned());
}
// inner
"--switch_uuid" => {
if let Some(switch_uuid) = args.next() {