[core] prevent recursive logouts on htto-401

fixes #7
This commit is contained in:
groegert 2021-05-24 19:30:28 +02:00
parent 9940589d1a
commit 625ac55b0a
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ export default boot(({ router }) => {
// Secured area (LOGIN REQUIRED)
// Check login is ok
if (!store.session || store.session.expires <= new Date()) {
void store.logout();
void store.handleLoggedOut();
return next({ name: 'login', query: { redirect: to.fullPath } });
}

View File

@ -10,8 +10,8 @@ const config: { [key: string]: Array<string> } = {
// Do not change required Modules !!
requiredModules: ['User'],
// here you can import plugins.
//loadModules: ['Balance', 'Schedule', 'Pricelist'],
loadModules: [],
loadModules: ['Balance', 'Schedule', 'Pricelist'],
//loadModules: [],
};
/* Stop!