Skip to content

Commit

Permalink
signout on whitelist (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Sep 11, 2024
1 parent 22978d8 commit 8307880
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions vue/sbc-common-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vue/sbc-common-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sbc-common-components",
"version": "3.0.13",
"version": "3.0.14",
"private": false,
"description": "Common Vue Components to be used across BC Registries and Online Services.",
"license": "Apache-2.0",
Expand Down
5 changes: 3 additions & 2 deletions vue/sbc-common-components/src/components/SbcHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,12 @@ export default class SbcHeader extends Mixins(NavigationMixin) {
this.redirectToPath(this.inAuth, `${Pages.ACCOUNT}/${this.currentAccount.id}/${Pages.SETTINGS}/transactions`)
}
private checkAccountStatus () {
async checkAccountStatus () {
// redirect if accoutn status is suspended
if ([AccountStatus.NSF_SUSPENDED, AccountStatus.SUSPENDED].some(status => status === this.currentAccount?.accountStatus)) {
// Avoid redirecting when navigating back from PAYBC for NSF.
if (window.location.pathname.indexOf('return-cc-payment') === -1) {
if (window.location.pathname.indexOf('return-cc-payment') === -1 &&
window.location.pathname.indexOf('signout') === -1) {
this.redirectToPath(this.inAuth, `${Pages.ACCOUNT_FREEZ}`)
}
} else if (this.currentAccount?.accountStatus === AccountStatus.PENDING_STAFF_REVIEW) {
Expand Down

0 comments on commit 8307880

Please sign in to comment.