This commit is contained in:
2020-11-19 20:17:34 +00:00
parent d0e1c5b595
commit 0dbae7d8e4
5 changed files with 164 additions and 27 deletions

View File

@@ -339,8 +339,10 @@ export default {
toPath = undefined;
}
let isReset = toPath && toPath.includes("home-reset");
//redirect to login if not authenticated
if (!vm.$store.state.authenticated) {
if (!vm.$store.state.authenticated && !isReset) {
//If a direct open path was being used but user is not logged in this will catch it
//otherwise they will just go on to that path directly