* Added new token system to add more security to logins

* Added simple tag editing from note page
This commit is contained in:
Max G committed 2020-06-10 04:41:52 +00:00
1 parent 6bb856689d
commit d2624628d8
11 files changed
+324 -103

No files matched your search

+5 -3
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')