From fd3d3f0bc4679a3d82db100cb230c8e0a484c24c Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 11 Feb 2026 15:30:17 +0000
Subject: [PATCH] =AuthManager.js and Referral.js minor fixes - registration form was broken
---
assets/js/concise/AuthManager.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/assets/js/concise/AuthManager.js b/assets/js/concise/AuthManager.js
index 0e7f175..25db258 100644
--- a/assets/js/concise/AuthManager.js
+++ b/assets/js/concise/AuthManager.js
@@ -86,13 +86,12 @@
headers
});
- // If auth failed and we haven't retried yet, refresh and try once more
if ((response.status === 403 || response.status === 401) && retryCount === 0) {
const result = await response.clone().json();
- if (resconsole.logult.code === 'rest_cookie_invalid_nonce' || result.message?.includes('Cookie check')) {
- ('Nonce invalid, refreshing auth...');
+ if (result.code === 'rest_cookie_invalid_nonce' || result.message?.includes('Cookie check')) {
+ console.log('Nonce invalid, refreshing auth...');
await this.refresh();
- return attempt(1); // Retry once
+ return attempt(1);
}
}
--
Gitblit v1.10.0