From 6a2972ff831f56bc7e1bc58bbc7c9012acc40145 Mon Sep 17 00:00:00 2001
From: yingfeng
Date: Wed, 15 Nov 2023 09:23:52 -0500
Subject: [PATCH] AMP-2826/2226 - add space for resend on ForgotPassword page -
add logs to router
---
src/components/account/ForgotPassword.vue | 4 ++--
src/router.js | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/components/account/ForgotPassword.vue b/src/components/account/ForgotPassword.vue
index 4e12bedf..43763b71 100644
--- a/src/components/account/ForgotPassword.vue
+++ b/src/components/account/ForgotPassword.vue
@@ -47,8 +47,8 @@
diff --git a/src/router.js b/src/router.js
index a12adb51..50f25d8d 100644
--- a/src/router.js
+++ b/src/router.js
@@ -36,7 +36,6 @@ var router = new Router({
name: "home",
component: HomePage,
meta: {
- // authorize: [],
helpUrl: env.getEnv("VUE_APP_DOC_AMP_USER_GUIDE"),
},
},
@@ -477,6 +476,8 @@ router.beforeEach(async (to, from, next) => {
const { authorize } = to.meta;
const currentUser = accountService.currentUserValue;
+ console.log("from: ", from, "\nto: ", to, "\nnext: ", next);
+
if (env.getDisableAuth() == "true" || !authorize) {
console.log("router: No auth needed.")
return next();