* Added Much better session Management, key updating and deleting

* Force reload of JS if app numbers dont match
* Added cool tag display on side of note
* Cleaned up a bunch of code and tweaked little things to be better
This commit is contained in:
Max G
2020-06-15 09:02:20 +00:00
parent d2624628d8
commit 071aaf22cd
18 changed files with 333 additions and 270 deletions

View File

@@ -136,19 +136,4 @@ router.post('/disableshare', function (req, res) {
})
//
// Testing Action
//
//Reindex all Note. Not a very good function, not public
router.get('/reindex5yu43prchuj903mrc', function (req, res) {
Note.migrateNoteTextToNewTable().then(status => {
return res.send(status)
})
})
module.exports = router

View File

@@ -33,7 +33,7 @@ router.post('/login', function (req, res) {
// Logout User
router.post('/logout', function (req, res) {
User.logout(req.headers.tokenId)
User.logout(req.headers.sessionId)
.then( returnData => {
res.send(true)
})