mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-18 00:20:44 +02:00
cli: show pre-filled readline input if it is not a real password (rh #1351272)
Example: $ nmcli -a con up test-conn Passwords or encryption keys are required to access the wireless network 'kkk'. Username (802-1x.identity): cimrman Password (802-1x.password): https://bugzilla.redhat.com/show_bug.cgi?id=1351272
This commit is contained in:
parent
6308c90b5e
commit
c9f6309910
1 changed files with 2 additions and 1 deletions
|
|
@ -1059,7 +1059,8 @@ get_secrets_from_user (const char *request_id,
|
|||
}
|
||||
}
|
||||
g_print ("%s\n", msg);
|
||||
pwd = nmc_readline_echo (echo_on, "%s (%s): ", secret->name, secret->prop_name);
|
||||
pwd = nmc_readline_echo (secret->password ? echo_on : TRUE,
|
||||
"%s (%s): ", secret->name, secret->prop_name);
|
||||
if (!pwd)
|
||||
pwd = g_strdup ("");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue