* Added new token system to add more security to logins
* Added simple tag editing from note page
This commit is contained in:
1 parent
6bb856689d
commit
d2624628d8
11 files changed
+324
-103
No files matched your search
@@ -30,6 +30,18 @@ router.post('/login', function (req, res) {
|
||||
res.send(false)
|
||||
})
|
||||
})
|
||||
// Logout User
|
||||
router.post('/logout', function (req, res) {
|
||||
|
||||
User.logout(req.headers.tokenId)
|
||||
.then( returnData => {
|
||||
res.send(true)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
// Login User
|
||||
router.post('/register', function (req, res) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user