@arnaudw38/nodebb-plugin-spam-be-gone 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.0.4] - 2026-02-25
6
+
7
+ ### Fixed
8
+ - Fixed login UX regression where the Turnstile widget was resetting while typing in the username/password fields.
9
+ - Turnstile now resets only after a login submission retry flow (failed login without page reload), not on every keystroke.
10
+
5
11
  ## [1.0.3] - 2026-02-25
6
12
 
7
13
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arnaudw38/nodebb-plugin-spam-be-gone",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Anti-spam plugin for NodeBB 4.x using Akismet, StopForumSpam API, ProjectHoneyPot, and Cloudflare Turnstile (Turnstile-only fork)",
5
5
  "main": "library.js",
6
6
  "scripts": {},
@@ -82,12 +82,7 @@ $(function () {
82
82
  .on('click.spamBeGoneTurnstileLogin', '[component="login/submit"]', function () {
83
83
  scheduleLoginTurnstileReset(targetId);
84
84
  })
85
- .off('input.spamBeGoneTurnstileLogin change.spamBeGoneTurnstileLogin')
86
- .on('input.spamBeGoneTurnstileLogin change.spamBeGoneTurnstileLogin', 'input[name="username"], input[name="password"]', function () {
87
- if (document.getElementById(targetId) && getCurrentTurnstileResponse()) {
88
- resetTurnstileWidget(targetId);
89
- }
90
- });
85
+ .off('input.spamBeGoneTurnstileLogin change.spamBeGoneTurnstileLogin');
91
86
  }
92
87
 
93
88
  function renderTurnstileIfNeeded(isLoginPage) {