From 6471511909de79c1f3739ba9d6a5b45b7eb1fadb Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Mon, 4 Mar 2019 00:14:38 +0000 Subject: [authentication] Restructure api to match our new error code standard Moved most of the res.send from the lib to the api Fixed frontend to match the new api --- webapp/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/src/main.js') diff --git a/webapp/src/main.js b/webapp/src/main.js index 70afb40..9604fd1 100644 --- a/webapp/src/main.js +++ b/webapp/src/main.js @@ -60,7 +60,7 @@ Vue.use(VueCodemirror, { Vue.use(VueTouch) axios.interceptors.response.use(null, error => { - if (error && error.response.status === 401) { + if (error && error.response.error === 401) { axios.post('/api/authentication/logout').then(response => { router.push('/login') socket.close() -- cgit v1.2.3-55-g7522