mirror of https://gitgud.io/fatchan/jschan.git
-true characters -false characters -question text Make optional (and add additional options for) some filters/effects -paint -line -wavemerge-requests/341/head
parent
0461842d14
commit
c8ebf9a579
19 changed files with 127 additions and 55 deletions
@ -0,0 +1,19 @@ |
||||
'use strict'; |
||||
|
||||
module.exports = async(db, redis) => { |
||||
console.log('add more captcha options'); |
||||
await db.collection('globalsettings').updateOne({ _id: 'globalsettings' }, { |
||||
'$set': { |
||||
'captchaOptions.text': { |
||||
'line': false, |
||||
'wave': false, |
||||
'paint': false, |
||||
}, |
||||
'captchaOptions.grid.falses': ['○','□','♘','♢','▽','△','♖','✧','♔','♘','♕','♗','♙','♧'], |
||||
'captchaOptions.grid.trues': ['●','■','♞','♦','▼','▲','♜','✦','♚','♞','♛','♝','♟','♣'], |
||||
'captchaOptions.grid.question': 'Select the solid/filled icons',
|
||||
}, |
||||
}); |
||||
console.log('Clearing globalsettings cache'); |
||||
await redis.deletePattern('globalsettings'); |
||||
}; |
Loading…
Reference in new issue