Thomas Lynch
29bb4856ab
2fa improvements
...
- Don't allow code re-use, successfully used codes will be invalid on repeated use for the window time
- Don't attach the full twofactor secret to user object in session for security. Only store a boolean if it's enabled for rendering, checks, etc. The full account should be fetched first before doTwoFactor()
- Better names for some keys of twofactor redis stuff
2 years ago
Thomas Lynch
05413d72c6
Ref #418 add the abandoned boards handling
...
Fix small bug with incorrect schema for the setting
Set both schedules to immediate: false
2 years ago
Thomas Lynch
e047782249
eslint lib, migrations, db, models, test, schedules and root dir
2 years ago
Thomas Lynch
bb582c2de8
"helpers" -> "lib
...
god help anybody who gets serious merge conflicts from this
close #434
2 years ago
Thomas Lynch
45aa0ad680
move some more .js files out of root dir, not helper related
2 years ago
Thomas Lynch
db65093a61
error handling
3 years ago
Thomas Lynch
3038e6c279
fix "end" emitting before last "data" resulting in missing a few keys occasionally (races)
3 years ago
Thomas Lynch
f2b4ec2dd2
ability to show your login sessions, ref #353
3 years ago
Thomas Lynch
e511c67efa
Make roles update on edits and fix map imports, so the role names show correctly after edt
3 years ago
Thomas Lynch
993924a5f2
Start making roles editable ref #377
...
permtemplates are now roles.
They are in the db and can be edited.
Still have to do a few things like the migration, gulpfile and some small details.
3 years ago
Thomas Lynch
849882a066
more model and form improvement
...
add a few missing field to paramconverter
make dnsbl cache time divided since it takes the time format
make redis print when it gets a message if debuglogs are on
4 years ago
Thomas Lynch
1c5f14e419
This did not go as planned
4 years ago
Thomas Lynch
60cddef23a
slowly switch configs to db and only a small amount of things like secrets remain in a config file
4 years ago
Thomas Lynch
c6441c33f8
start on the model, update paramconverter, refactor the setting thing from boardsettings and fix a bug (how did that not cause problems?? o.o)
4 years ago
Thomas Lynch
9ad03e096a
make subscriber only start when there is any listener so its not needed in gulptasks for example
...
change how to close redis since there are more than 1 connection for other thigns
4 years ago
Thomas Lynch
de75523ddc
start making the config able to reload, for now just clearing require.cache
...
also made some of the app.locals load from getconfig, not added to callbacks in redis yet
4 years ago
Thomas Lynch
d76c233d92
simple pubsub test in redis file
4 years ago
some_random_guy
0f20646833
use `redirect: false` in express.static
...
This prevents prolems like `/` giving 404 in devel mode (when
`static/html/index.html` is missing) or `/captcha` redirecting to
`/captcha/` (then breaking).
4 years ago
Thomas Lynch
e6f11478ee
Dev auto reset triggers ( #152 )
...
* dev-auto-reset-triggers to test auto resetting trigger action at end of each hour references #130
* migration and comment change
* migrateVersion change
4 years ago
fatchan
2b4e631756
accounts page, list owned and mod boards in accounts, show on global manage and accounts page
5 years ago
fatchan
9ce66a303d
change config to js file so it an include comments
5 years ago
fatchan
f55b0f4cea
add other util to redis wrapper using scan to delete keys by a pattern for diagnostics or amdinistrative purposes
5 years ago
fatchan
8e5d1a15f8
add TTL to redis set in wrapper
5 years ago
fatchan
392d2c8199
small typographical and minor changes
5 years ago
fatchan
5ef7da7100
banner rotating uses srandmember from redis of board banners
5 years ago
fatchan
6a21fcccb1
add del to redis and cache boards for single board query and exists middleware
5 years ago
fatchan
4e22ee61ce
switch to bull instead of rsmq its superior in every way
5 years ago
fatchan
3aabb5dbb5
switch redis lib to have a separate client, so that i can use it for k:v cache later
5 years ago