Update: 2026-06-12 20:40:40
This commit is contained in:
@@ -15,6 +15,10 @@ if (empty($otp) || empty($fingerprint)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// Rate Limiting: 3 محاولات OTP في 5 دقائق لكل IP
|
||||
$rateLimiter = new RateLimiter($redis);
|
||||
$rateLimiter->enforce(RateLimiter::identifier(), 'otp');
|
||||
|
||||
try {
|
||||
$con = Database::get('main');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user