Files
wekan/packages
Lauri Ojansivu 7f9fc2e957 Brute-force lockout starts when Meteor.settings configures it.
wekan-accounts-lockout's README documents Meteor.settings['accounts-lockout']
.knownUsers / .unknownUsers as objects that override the configured values.
Both counters applied them with settings.forEach(function ({ key, value }) {
this.settings[key] = value; }): an object has no forEach, and in a function
callback `this` is undefined, so with either shape startup() threw before
hookIntoAccounts(). Nothing awaits startup(), so the error went unseen and
the lockout was never installed.

knownUser.js and unknownUser.js now share src/lockoutSettings.js - the
override merge, which takes a plain object and leaves anything else alone,
the positive-number check and the Meteor.settings lookup - instead of each
carrying a copy. tests/lockoutSettings runs the README's settings and fails
if either counter has its own check or a function forEach again.

Thanks to xet7 !
2026-11-21 18:49:26 +02:00
..
2026-11-10 09:20:28 +02:00
2026-11-14 18:23:50 +02:00
2026-11-10 09:20:28 +02:00
2026-11-10 09:20:28 +02:00
2026-11-10 09:20:28 +02:00
2026-11-10 09:20:28 +02:00