Implemented permabans

This commit is contained in:
2021-03-28 08:32:28 +11:00
parent e597974581
commit 547d5dba1c
7 changed files with 106 additions and 1 deletions
+5
View File
@@ -42,6 +42,11 @@ const route = async (req, res) => {
}
});
//reject on banned
if (account.banned) {
return res.status(403).send('this account has been banned');
}
//generate the JWT
const tokens = generate(account.id, account.username, account.type, account.admin, account.mod);