mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to test expired password correctly
This commit is contained in:
@@ -3762,7 +3762,6 @@ elsif ($config{'passwd_file'}) {
|
||||
local $m = $l[$config{'passwd_mindex'}];
|
||||
local $day = time()/(24*60*60);
|
||||
print DEBUG "validate_unix_user: c=$c m=$m day=$day\n";
|
||||
$m ||= 0;
|
||||
if ($c =~ /^\d+/ && $m =~ /^\d+/ && $day - $c > $m) {
|
||||
# Yep, it has ..
|
||||
$rv = 2;
|
||||
|
||||
Reference in New Issue
Block a user