From c1b52615be7373eb6a9fb1446022581f50995013 Mon Sep 17 00:00:00 2001 From: shaw Date: Sat, 25 Apr 2026 21:38:40 +0800 Subject: [PATCH] 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. --- frontend/src/router/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 2b85b97e..06f6b212 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -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 } }, {