mirror of https://gitgud.io/fatchan/jschan.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
792 B
23 lines
792 B
'use strict';
|
|
|
|
module.exports = async(db, redis) => {
|
|
console.log('add more captcha options');
|
|
await db.collection('globalsettings').updateOne({ _id: 'globalsettings' }, {
|
|
'$set': {
|
|
'captchaOptions.text': {
|
|
'font': 'default',
|
|
'line': false,
|
|
'wave': 0,
|
|
'paint': 2,
|
|
'noise': 0,
|
|
},
|
|
'captchaOptions.grid.falses': ['○','□','♘','♢','▽','△','♖','✧','♔','♘','♕','♗','♙','♧'],
|
|
'captchaOptions.grid.trues': ['●','■','♞','♦','▼','▲','♜','✦','♚','♞','♛','♝','♟','♣'],
|
|
'captchaOptions.grid.question': 'Select the solid/filled icons',
|
|
'captchaOptions.grid.noise': 0,
|
|
'captchaOptions.grid.edge': 25,
|
|
},
|
|
});
|
|
console.log('Clearing globalsettings cache');
|
|
await redis.deletePattern('globalsettings');
|
|
};
|
|
|