From 49dcf6454daf7e6bf5f2eba2629ef859066249d9 Mon Sep 17 00:00:00 2001 From: "robinwilliam.hundt" <robinwilliam.hundt@stud.uni-goettingen.de> Date: Mon, 11 Dec 2017 00:29:52 +0100 Subject: [PATCH] Fixed the bug i introduced when fixin a bug... --- frontend/src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 49a0675a..2b6e0b9a 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -62,7 +62,7 @@ router.beforeEach((to, from, next) => { next() } else { const now = new Date() - if (now - store.state.logInTime > store.state.jwtTimeDelta) { + if (now - store.state.logInTime > store.state.jwtTimeDelta * 1000) { store.dispatch('logout').then(() => { store.commit('API_FAIL', 'You\'ve been logged out due to inactivity') next('/') -- GitLab