* Added new token system to add more security to logins

* Added simple tag editing from note page
This commit is contained in:
Max G
2020-06-10 04:41:52 +00:00
parent d349fb8328
commit 56d4664d0d
11 changed files with 324 additions and 103 deletions

View File

@@ -347,9 +347,11 @@
.catch(error => { this.$bus.$emit('notification', 'Failed to create note') })
},
destroyLoginToken() {
this.$bus.$emit('notification', 'Logged Out')
this.$store.commit('destroyLoginToken')
this.$router.push('/')
axios.post('/api/user/logout').then( response => {
this.$bus.$emit('notification', 'Logged Out')
this.$store.commit('destroyLoginToken')
this.$router.push('/')
})
},
toggleNightMode(){
this.$store.commit('toggleNightMode')