Skip to content

Commit

Permalink
AMP-2826/2226
Browse files Browse the repository at this point in the history
- add space for resend on ForgotPassword page
- add logs to router
  • Loading branch information
yingfeng-iu committed Nov 15, 2023
1 parent f10f25f commit 6a2972f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/account/ForgotPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
</p>

<div class="form-group" v-if="resend_email">
<label>An email with a link to reset password has been sent. </label>
<span><a href="#" @click="sendEmail()">Resend Email?</a></span>
<label>An email with a link to reset password has been sent.</label>
<span><a href="#" @click="sendEmail()">&nbsp; Resend Email</a></span>
</div>
</form>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var router = new Router({
name: "home",
component: HomePage,
meta: {
// authorize: [],
helpUrl: env.getEnv("VUE_APP_DOC_AMP_USER_GUIDE"),
},
},
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6a2972f

Please sign in to comment.