Hotfix a hotfix

This commit is contained in:
2023-12-24 05:00:49 +11:00
parent 72a4b0e101
commit 8ab786b934
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -19,6 +19,9 @@ router.patch('/reset', require('./password-reset'));
//logouts allowed when banned, and when the token itself is invalid
router.delete('/logout', require('./logout'));
//authenticate token
router.use(tokenAuth);
//middleware
router.use(async (req, res, next) => {
const record = await accounts.findOne({
@@ -41,9 +44,6 @@ router.use(async (req, res, next) => {
//refresh token
router.post('/token', require('./token'));
//authenticate token
router.use(tokenAuth);
//basic account management (needs a token)
router.get('/account', require('./account-query'));
router.patch('/account', require('./account-update'));