Fix password change screen pop up on every login 20d07a17a8

This commit is contained in:
iliajie
2023-04-28 11:02:19 +03:00
parent 70fce1f97e
commit 5dc2281e66

View File

@ -3763,7 +3763,7 @@ elsif ($config{'passwd_file'}) {
local $day = time()/(24*60*60);
print DEBUG "validate_unix_user: c=$c m=$m day=$day\n";
$m ||= 0;
if ($c =~ /^\d+/ && $day - $c > $m) {
if ($c =~ /^\d+/ && $m =~ /^\d+/ && $day - $c > $m) {
# Yep, it has ..
$rv = 2;
}