Account deletion working

This commit is contained in:
2021-01-30 02:34:40 +11:00
parent 6468b02647
commit 9b71688903
12 changed files with 178 additions and 5 deletions
+7
View File
@@ -40,6 +40,13 @@ const route = async (req, res) => {
req.session.account = account;
res.cookie('loggedin', process.env.WEB_ADDRESS);
//cancel deletion if any
await accounts.update({ deletion: null }, {
where: {
id: account.id
}
});
//finally
res.status(200).send('login succeeded');
};