Disable posting immediately when deleting user password file.

This commit is contained in:
Retro_Guy 2024-01-14 06:53:33 -07:00
parent b6be00ae1c
commit f40bcb2c47
1 changed files with 7 additions and 0 deletions

View File

@ -185,6 +185,13 @@ if ($type == "post") {
}
}
}
// Check that user has not been recently banned
if(!is_file($config_dir.'/users/'.strtolower(trim($name)))) {
$type = "retry";
$error = $text_error["auth_error"];
$_SESSION['pass'] = false;
$logged_in = false;
}
// error handling
if (trim($body) == "") {
$type = "retry";