aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien Lefebvre <alefebvre@mandriva.com>2009-08-18 08:49:16 +0000
committerAurélien Lefebvre <alefebvre@mandriva.com>2009-08-18 08:49:16 +0000
commit431f6c3bb510d697632e0336e29ebb292ae7695c (patch)
tree51cac3bd6318c640d3b8a656b455f3b2986b2646
parent1ee9ffc30d71fa18e5b6097d62fae852989fceff (diff)
downloaduserdrake-431f6c3bb510d697632e0336e29ebb292ae7695c.tar
userdrake-431f6c3bb510d697632e0336e29ebb292ae7695c.tar.gz
userdrake-431f6c3bb510d697632e0336e29ebb292ae7695c.tar.bz2
userdrake-431f6c3bb510d697632e0336e29ebb292ae7695c.tar.xz
userdrake-431f6c3bb510d697632e0336e29ebb292ae7695c.zip
added password weakness check (require >= drakx-12.45)
-rw-r--r--NEWS2
-rwxr-xr-xuserdrake5
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 366c0c7..72e2b70 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- added password weakness check (require >= drakx-12.45)
+
Version 1.9.1 - 15 April 2009, Thierry Vignaud
- translation updates
diff --git a/userdrake b/userdrake
index b2163e6..12bcffb 100755
--- a/userdrake
+++ b/userdrake
@@ -679,6 +679,11 @@ 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}->modify_base('GTK_STATE_NORMAL', interactive::gtk::get_weakness_color($password_weakness));
+ });
$vbox;
}