From f40bcb2c477777119a5fddceec13e0cbf3c044ed Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 14 Jan 2024 06:53:33 -0700 Subject: [PATCH] Disable posting immediately when deleting user password file. --- Rocksolid_Light/rocksolid/post.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rocksolid_Light/rocksolid/post.php b/Rocksolid_Light/rocksolid/post.php index 1f526ea..d3b8d63 100644 --- a/Rocksolid_Light/rocksolid/post.php +++ b/Rocksolid_Light/rocksolid/post.php @@ -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";