diff options
author | Daouda Lo <daouda@mandriva.com> | 2003-06-23 11:22:14 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2003-06-23 11:22:14 +0000 |
commit | 95b0628190c3ab5e840f379d8de5097108ef0571 (patch) | |
tree | 306ab59f1cc5070ab54715976be34b3a9c9a3b8c | |
parent | 0513f7d0a282d13e345cc9f678e26b56130511f8 (diff) | |
download | userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar.gz userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar.bz2 userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.tar.xz userdrake-95b0628190c3ab5e840f379d8de5097108ef0571.zip |
- password expiration sanity checks
-rwxr-xr-x | userdrake2 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -548,7 +548,7 @@ sub Edit { $dayStr->set_text($times->{daystr}); $month->set_text($times->{month}); $dayInt->set_text($times->{dayint}); $year->set_text($times->{year}); } $min = $userEnt->ShadowMin($GetValue); $max =$userEnt->ShadowMax($GetValue); $warn = $userEnt->ShadowWarn($GetValue); $inact = $userEnt->ShadowInact($GetValue); - if ($min && $min != -1 || $max && $max != 99999 || $warn && $warn != -1 || $inact && $inact != -1) { + if ($min && $min != -1 || $max && $max != 99999 || $warn && $warn != 7 && $warn != -1 || $inact && $inact != -1) { $us->{o}->{pcheckexpire}->set_active(1); $v->set_sensitive(1); } $min && $min != -1 and $us->{o}->{dbca}->set_text($min); $max && $max != -1 and $us->{o}->{dbcr}->set_text($max); |