mirror of
https://github.com/luxfi/pics.git
synced 2026-10-30 15:22:15 +00:00
19 lines
547 B
JavaScript
19 lines
547 B
JavaScript
'use strict';
|
|
|
|
module.exports = async(db, redis) => {
|
|
|
|
console.log('Updating globalsettings to add 2fa enforcement options');
|
|
await db.collection('globalsettings').updateOne({ _id: 'globalsettings' }, {
|
|
'$set': {
|
|
'forceAccountTwofactor': false,
|
|
'forceActionTwofactor': false, //TODO: potentially break this down to be more granular on what needs 2fa
|
|
},
|
|
});
|
|
|
|
console.log('Clearing globalsettings cache');
|
|
await redis.deletePattern('globalsettings');
|
|
console.log('Clearing boards cache');
|
|
await redis.deletePattern('board:*');
|
|
|
|
};
|