diff options
author | Aurélien Lefebvre <alefebvre@mandriva.com> | 2009-08-18 08:49:16 +0000 |
---|---|---|
committer | Aurélien Lefebvre <alefebvre@mandriva.com> | 2009-08-18 08:49:16 +0000 |
commit | 431f6c3bb510d697632e0336e29ebb292ae7695c (patch) | |
tree | 51cac3bd6318c640d3b8a656b455f3b2986b2646 | |
parent | 1ee9ffc30d71fa18e5b6097d62fae852989fceff (diff) | |
download | userdrake-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-- | NEWS | 2 | ||||
-rwxr-xr-x | userdrake | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,5 @@ +- added password weakness check (require >= drakx-12.45) + Version 1.9.1 - 15 April 2009, Thierry Vignaud - translation updates @@ -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; } |