* Added placeholder text to site when loading JS

* Added hidden text to site for scraping
* Login token will be destroyed if fetch site totals is called and the token is bad
* Moved passwords out of application and into a .env file that is loaded on startup
* Changed prod database password for primary user (which is dev)
* Set up .env for dev and prod
This commit is contained in:
Max G
2020-04-13 07:44:57 +00:00
parent ed4a5e5291
commit 7c15427b3d
8 changed files with 61 additions and 19 deletions

View File

@@ -133,6 +133,10 @@ export default new Vuex.Store({
.then( ({data}) => {
commit('setUserTotals', data)
})
.catch( error => {
commit('destroyLoginToken')
location.reload()
})
}
}
})