Updated admin and mod flag system
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user