Fix headless OS account password controller usage

Use the password controller instead of the username controller when saving the headless OS account password, and preserve surrounding whitespace.
This commit is contained in:
Ali Joghataei 2026-04-20 17:54:54 +03:30
parent 8ddee758c1
commit b9495ecf62

View file

@ -1450,7 +1450,7 @@ showSetOSAccount(
dialogManager.show((setState, close, context) {
submit() {
final username = usernameController.text.trim();
final password = usernameController.text.trim();
final password = passwdController.text;
bind.sessionPeerOption(
sessionId: sessionId, name: 'os-username', value: username);
bind.sessionPeerOption(