You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ var store = new ExpressBrute.MemoryStore(); // stores state locally, don't use t
20
20
var bruteforce =newExpressBrute(store);
21
21
22
22
app.post('/auth',
23
-
bruteforce.prevent, // error 403 if we hit this route too often
23
+
bruteforce.prevent, // error 429 if we hit this route too often
24
24
function (req, res, next) {
25
25
res.send('Success!');
26
26
}
@@ -147,6 +147,7 @@ Changelog
147
147
* NEW: Documentation updated to list some known store implementations.
148
148
* CHANGED: Default failure callback is now `FailTooManyRequests`. `FailForbidden` remains an option for backwards compatiblity.
149
149
* CHANGED: ExpressBrute.MemcachedStore is no longer included by default, and is now available as a separate module (because there are multiple store options it doesn't really make sense to include one by default).
150
+
* CHANGED: `FailMark` no longer sets returns 403 Forbidden, instead does 429 TooManyRequets.
150
151
151
152
### v0.4.2
152
153
* BUG: In some cases when no callbacks were supplied memcached would drop the request. Ensure that memcached always sees a callback even if ExpressBrute isn't given one.
0 commit comments