mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Add extra check for a session for a user that no longer exists
This commit is contained in:
10
miniserv.pl
10
miniserv.pl
@@ -2014,6 +2014,16 @@ if ($config{'userfile'}) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($authuser) {
|
||||
# We got a session .. but does the user still exist?
|
||||
my $auser = &get_user_details($authuser);
|
||||
if (!$auser) {
|
||||
print STDERR "Session $session_id is for user ",
|
||||
"$authuser who does not exist\n";
|
||||
$validated = 0;
|
||||
$already_authuser = $authuser = undef;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Check for local authentication
|
||||
|
||||
Reference in New Issue
Block a user