This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user