aboutsummaryrefslogtreecommitdiffstats
path: root/userdrake
diff options
context:
space:
mode:
Diffstat (limited to 'userdrake')
-rwxr-xr-xuserdrake8
1 files changed, 1 insertions, 7 deletions
diff --git a/userdrake b/userdrake
index 2ce731b..ab800d2 100755
--- a/userdrake
+++ b/userdrake
@@ -652,7 +652,7 @@ sub CreateTree {
sub GtkEntryHidePass {
my ($text) = @_;
- my $e = Gtk2::Entry->new;
+ my $e = gtknew('WeaknessCheckEntry');
$text and $e->set_text($text);
$e->set_visibility(0);
$e;
@@ -679,12 +679,6 @@ sub BuildUui {
);
$us->{o}{shells}->set_popdown_strings(@{$ctx->GetUserShells});
$us->{o}{shells}->entry->set_text("/bin/bash");
- $us->{o}{passwd}->signal_connect(changed => sub {
- require authentication;
- my $password_weakness = authentication::compute_password_weakness($us->{o}{passwd}->get_text);
- $us->{o}{passwd}->set_icon_from_pixbuf('GTK_ENTRY_ICON_SECONDARY', interactive::gtk::get_weakness_icon($password_weakness));
- $us->{o}{passwd}->set_icon_tooltip_text('GTK_ENTRY_ICON_SECONDARY', interactive::gtk::get_weakness_tooltip($password_weakness));
- });
$vbox;
}