mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00

dependencies of lucasantoniassi:accounts-lockout and including only required 10 files. Thank to xet7 !
26 lines
886 B
JavaScript
26 lines
886 B
JavaScript
Meteor.startup(() => {
|
|
// https://atmospherejs.com/lucasantoniassi/accounts-lockout
|
|
// server
|
|
|
|
if (Meteor.isServer) {
|
|
import { AccountsLockout } from 'meteor/wekan-accounts-lockout';
|
|
|
|
new AccountsLockout({
|
|
knownUsers: {
|
|
failuresBeforeLockout:
|
|
process.env.ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE || 3,
|
|
lockoutPeriod: process.env.ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD || 60,
|
|
failureWindow:
|
|
process.env.ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW || 15,
|
|
},
|
|
unknownUsers: {
|
|
failuresBeforeLockout:
|
|
process.env.ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE || 3,
|
|
lockoutPeriod:
|
|
process.env.ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD || 60,
|
|
failureWindow:
|
|
process.env.ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW || 15,
|
|
},
|
|
}).startup();
|
|
}
|
|
});
|