fix text captcha options template and change defaults in template and migration

indiachan-spamvector
Thomas Lynch 2 years ago
parent 5c359a8bda
commit b57a69f8d6
  1. 4
      configs/template.js.example
  2. 4
      migrations/0.8.0.js

@ -36,8 +36,8 @@ module.exports = {
generateLimit: 250,
text: {
font: 'default',
wave: false,
line: 0,
line: true,
wave: 0,
paint: 2,
noise: 0,
},

@ -8,7 +8,7 @@ module.exports = async(db, redis) => {
'$set': {
'captchaOptions.text': {
'font': 'default',
'line': false,
'line': true,
'wave': 0,
'paint': 2,
'noise': 0,
@ -25,4 +25,4 @@ module.exports = async(db, redis) => {
});
console.log('Clearing globalsettings cache');
await redis.deletePattern('globalsettings');
};
};

Loading…
Cancel
Save