diff options
-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; } |