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',
|
||||
component: () => import('@/views/user/StripePaymentView.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
requiresAuth: false,
|
||||
requiresAdmin: false,
|
||||
title: 'Stripe Payment',
|
||||
titleKey: 'payment.stripePay',
|
||||
requiresPayment: true
|
||||
requiresPayment: false
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -311,10 +311,10 @@ const routes: RouteRecordRaw[] = [
|
||||
name: 'StripePopup',
|
||||
component: () => import('@/views/user/StripePopupView.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
requiresAuth: false,
|
||||
requiresAdmin: false,
|
||||
title: 'Payment',
|
||||
requiresPayment: true
|
||||
requiresPayment: false
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user