Remove ref to the now useless autolock view

This commit is contained in:
Bubka 2023-10-30 13:47:02 +01:00
parent f0b954fc76
commit f7cceed126
2 changed files with 1 additions and 4 deletions

View File

@ -7,14 +7,12 @@ import Start from '../views/Start.vue'
import Accounts from '../views/Accounts.vue'
import Capture from '../views/twofaccounts/Capture.vue'
import CreateUpdateAccount from '../views/twofaccounts/CreateUpdate.vue'
import EditAccount from '../views/twofaccounts/Edit.vue'
import ImportAccount from '../views/twofaccounts/Import.vue'
import QRcodeAccount from '../views/twofaccounts/QRcode.vue'
import Groups from '../views/groups/Groups.vue'
import CreateUpdateGroup from '../views/groups/CreateUpdate.vue'
import Login from '../views/auth/Login.vue'
import Register from '../views/auth/Register.vue'
// import Autolock from './views/auth/Autolock.vue'
import PasswordRequest from '../views/auth/password/Request.vue'
// import PasswordReset from './views/auth/password/Reset.vue'
import WebauthnLost from '../views/auth/webauthn/Lost.vue'
@ -55,7 +53,6 @@ const router = createRouter({
{ path: '/login', name: 'login', component: Login, meta: { disabledWithAuthProxy: true, showAbout: true } },
{ path: '/register', name: 'register', component: Register, meta: { disabledWithAuthProxy: true, showAbout: true } },
// { path: '/autolock', name: 'autolock',component: Autolock, meta: { disabledWithAuthProxy: true, showAbout: true } },
{ path: '/password/request', name: 'password.request', component: PasswordRequest, meta: { disabledWithAuthProxy: true, showAbout: true } },
// { path: '/user/password/reset', name: 'password.reset', component: PasswordReset, meta: { disabledWithAuthProxy: true, showAbout: true } },
{ path: '/webauthn/lost', name: 'webauthn.lost', component: WebauthnLost, meta: { disabledWithAuthProxy: true, showAbout: true } },

View File

@ -69,7 +69,7 @@ export const httpClientFactory = (endpoint = 'api') => {
// api calls are stateless so when user inactivity is detected
// by the backend middleware, it cannot logout the user directly
// so it returns a 418 response.
// We catch the 418 response and push the user to the autolock view
// We catch the 418 response and log the user out
if ( error.response.status === 418 ) {
const user = useUserStore()
user.logout()