summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-05-14 00:54:15 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-05-14 00:54:15 +0000
commit62c8ad1da10ab7f08990f0edfa1b00c261f6963e (patch)
tree1b5786de6dce40895d129dc2d95509e01bd527f9
parent864573c5da0ffc4ae05d024b3e9af7fde7d3ac51 (diff)
downloaddrakx-net-62c8ad1da10ab7f08990f0edfa1b00c261f6963e.tar
drakx-net-62c8ad1da10ab7f08990f0edfa1b00c261f6963e.tar.gz
drakx-net-62c8ad1da10ab7f08990f0edfa1b00c261f6963e.tar.bz2
drakx-net-62c8ad1da10ab7f08990f0edfa1b00c261f6963e.tar.xz
drakx-net-62c8ad1da10ab7f08990f0edfa1b00c261f6963e.zip
Support toggling password echoing on wireless connections (#50668)
-rw-r--r--lib/network/connection/wireless.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index b0de565..7f46176 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -361,6 +361,7 @@ sub check_device {
sub load_interface_settings {
my ($self) = @_;
$self->SUPER::load_interface_settings;
+ $self->{hide_passwords} = 1;
}
sub get_networks {
@@ -451,7 +452,10 @@ sub get_network_access_settings {
{ label => N("Encryption mode"), val => \$self->{access}{network}{encryption}, list => [ keys %wireless_enc_modes ],
sort => 1, format => sub { translate($wireless_enc_modes{$_[0]}) } },
{ label => N("Encryption key"), val => \$self->{access}{network}{key},
+ hidden => sub { $self->{hide_passwords} },
disabled => sub { member($self->{access}{network}{encryption}, qw(none wpa-eap)) } },
+ { text => N("Hide password"),
+ type => "bool", val => \$self->{hide_passwords} },
{ text => N("Force using this key as ASCII string (e.g. for Livebox)"),
type => "bool", val => \$self->{access}{network}{force_ascii_key},
disabled => sub {
@@ -465,6 +469,7 @@ sub get_network_access_settings {
need to specify domain then try the untested syntax
DOMAIN\\username") },
{ label => N("EAP Password"), val => \$self->{access}{network}{eap_password},
+ hidden => sub { $self->{hide_passwords} },
disabled => sub { $self->{access}{network}{encryption} ne 'wpa-eap' },
help => N(" Password: A string.
Note that this is not the same thing as a psk.