Updated admin and mod flag system

This commit is contained in:
2021-03-24 08:22:47 +11:00
parent f60833ec17
commit e597974581
12 changed files with 134 additions and 47 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ const route = async (req, res) => {
});
//generate the JWT
const tokens = generate(account.id, account.username, account.privilege);
const tokens = generate(account.id, account.username, account.type, account.admin, account.mod);
//finally
res.status(200).json(tokens);