fix(payment): allow Stripe payment pages to bypass router auth guard
Stripe payment routes (/payment/stripe, /payment/stripe-popup) are reached via hard navigation (window.location.href), which caused the router guard to block access before the page could load. Set requiresAuth and requiresPayment to false, consistent with /payment/result. Backend API still enforces authentication.
This commit is contained in:
@@ -299,11 +299,11 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'StripePayment',
|
name: 'StripePayment',
|
||||||
component: () => import('@/views/user/StripePaymentView.vue'),
|
component: () => import('@/views/user/StripePaymentView.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
requiresAuth: true,
|
requiresAuth: false,
|
||||||
requiresAdmin: false,
|
requiresAdmin: false,
|
||||||
title: 'Stripe Payment',
|
title: 'Stripe Payment',
|
||||||
titleKey: 'payment.stripePay',
|
titleKey: 'payment.stripePay',
|
||||||
requiresPayment: true
|
requiresPayment: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -311,10 +311,10 @@ const routes: RouteRecordRaw[] = [
|
|||||||
name: 'StripePopup',
|
name: 'StripePopup',
|
||||||
component: () => import('@/views/user/StripePopupView.vue'),
|
component: () => import('@/views/user/StripePopupView.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
requiresAuth: true,
|
requiresAuth: false,
|
||||||
requiresAdmin: false,
|
requiresAdmin: false,
|
||||||
title: 'Payment',
|
title: 'Payment',
|
||||||
requiresPayment: true
|
requiresPayment: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user