Started working on the admin panel

This commit is contained in:
2021-01-31 12:07:03 +11:00
parent 71f3f8e370
commit be89c2d8d9
14 changed files with 202 additions and 6 deletions
+4
View File
@@ -40,6 +40,10 @@ const route = async (req, res) => {
req.session.account = account;
res.cookie('loggedin', process.env.WEB_ADDRESS);
if (account.privilege == 'administrator') {
res.cookie('admin', process.env.SESSION_ADMIN);
}
//cancel deletion if any
await accounts.update({ deletion: null }, {
where: {