* Added error display to every axios server call
* Added better destroy of login token if invalid * Block users from opening notes they don't own, note closes automatically * Beefed up login and home page a little to make them more appealing
This commit is contained in:
@@ -134,8 +134,10 @@ export default new Vuex.Store({
|
||||
commit('setUserTotals', data)
|
||||
})
|
||||
.catch( error => {
|
||||
commit('destroyLoginToken')
|
||||
location.reload()
|
||||
if(error.response && error.response.status == 400){
|
||||
commit('destroyLoginToken')
|
||||
location.reload()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user