Update: 2026-05-03 20:51:50
This commit is contained in:
@@ -7,7 +7,13 @@ use App\Core\Database;
|
||||
use App\Core\JWT;
|
||||
use App\Core\Validator;
|
||||
|
||||
$data = input();
|
||||
use App\Middleware\RateLimitMiddleware;
|
||||
use App\Core\Security;
|
||||
|
||||
// 0. Rate Limiting (5 attempts per minute per IP)
|
||||
RateLimitMiddleware::check(5, 60);
|
||||
|
||||
$data = Security::sanitize(input());
|
||||
|
||||
// 1. Validation
|
||||
$errors = Validator::validate($data, [
|
||||
|
||||
Reference in New Issue
Block a user