From b38f03c0e7218762d90fa5092696b127f24f36db Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 25 Jan 2026 07:07:26 +0000
Subject: [PATCH] =Some logical flaws in Queue.php, Queue.js, ContentExecutor.php, UploadExecutor.php - particularly with timeline ordering, frontend queue updates, etc
---
inc/rest/routes/LoginRoutes.php | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/inc/rest/routes/LoginRoutes.php b/inc/rest/routes/LoginRoutes.php
index 9762e9f..e775960 100644
--- a/inc/rest/routes/LoginRoutes.php
+++ b/inc/rest/routes/LoginRoutes.php
@@ -110,7 +110,6 @@
public function handleLogin(WP_REST_Request $request): WP_REST_Response
{
$data = $request->get_params();
- error_log('Data: '.print_r($data, true));
// Verify Turnstile
if (!$this->verifyTurnstile($data['cf-turnstile-response'] ?? '')) {
return $this->error('Security verification failed', 'turnstile_failed', 403);
@@ -650,7 +649,7 @@
}
// Lockout expired - clear attempts
- $this->cache->delete($cache_key);
+ $this->cache->forget($cache_key);
return true;
}
@@ -690,7 +689,7 @@
protected function clearFailedAttempts(string $username): void
{
$cache_key = 'login_attempts_' . md5($username);
- $this->cache->delete($cache_key);
+ $this->cache->forget($cache_key);
}
--
Gitblit v1.10.0