Skip to content
Snippets Groups Projects
Commit 49dcf645 authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Fixed the bug i introduced when fixin a bug...

parent fa589d3c
No related branches found
No related tags found
1 merge request!23Resolve "Logout of tutors after inactivity"
Pipeline #
...@@ -62,7 +62,7 @@ router.beforeEach((to, from, next) => { ...@@ -62,7 +62,7 @@ router.beforeEach((to, from, next) => {
next() next()
} else { } else {
const now = new Date() 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.dispatch('logout').then(() => {
store.commit('API_FAIL', 'You\'ve been logged out due to inactivity') store.commit('API_FAIL', 'You\'ve been logged out due to inactivity')
next('/') next('/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment