This commit is contained in:
2020-11-19 23:38:49 +00:00
parent 5dbda2ce09
commit 5aec31f3c3
2 changed files with 5 additions and 12 deletions

View File

@@ -242,6 +242,7 @@ import gzconfirm from "./components/gzconfirm";
import gznotify from "./components/gznotify";
import openObjectHandler from "./api/open-object-handler";
import notifyPoll from "./api/notifypoll";
import { processLogout } from "./api/authutil";
export default {
components: {
@@ -340,6 +341,9 @@ export default {
}
let isReset = toPath && toPath.includes("home-reset");
if (isReset && vm.$store.state.authenticated) {
processLogout();
}
//redirect to login if not authenticated
if (!vm.$store.state.authenticated && !isReset) {