summaryrefslogtreecommitdiffstats
path: root/webapp/src/main.js
diff options
context:
space:
mode:
authorJannik Schönartz2019-03-04 02:18:52 +0100
committerJannik Schönartz2019-03-04 02:18:52 +0100
commitca1f70f905a3eb3c083fb5f0c2d148a7af22eadd (patch)
tree14418a03a99e3bdfa49ddf2429f93bd336211e39 /webapp/src/main.js
parent[authentication] Restructure api to match our new error code standard (diff)
downloadbas-ca1f70f905a3eb3c083fb5f0c2d148a7af22eadd.tar.gz
bas-ca1f70f905a3eb3c083fb5f0c2d148a7af22eadd.tar.xz
bas-ca1f70f905a3eb3c083fb5f0c2d148a7af22eadd.zip
Revert wtf
Diffstat (limited to 'webapp/src/main.js')
-rw-r--r--webapp/src/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/src/main.js b/webapp/src/main.js
index 9604fd1..f80e6bf 100644
--- a/webapp/src/main.js
+++ b/webapp/src/main.js
@@ -60,7 +60,8 @@ Vue.use(VueCodemirror, {
Vue.use(VueTouch)
axios.interceptors.response.use(null, error => {
- if (error && error.response.error === 401) {
+ console.log(error.response)
+ if (error && error.response.status === 401) {
axios.post('/api/authentication/logout').then(response => {
router.push('/login')
socket.close()