mirror of
https://github.com/wekan/wekan.git
synced 2025-12-30 22:28:49 +01:00
Account configuration of option loginExpirationInDays is now possible
This commit is contained in:
parent
becb81f04a
commit
80319b0038
9 changed files with 35 additions and 1 deletions
9
server/accounts-common.js
Normal file
9
server/accounts-common.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Meteor.startup(() => {
|
||||
if (Meteor.isServer) {
|
||||
import { AccountsCommon } from 'meteor/accounts-base';
|
||||
|
||||
Accounts.config({
|
||||
loginExpirationInDays: process.env.ACCOUNTS_COMMON_LOGIN_EXPIRATION_IN_DAYS || 90,
|
||||
});
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue