"backend/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "3b7a5fff3123ce7b82cf24aa633f7d6194c4d267"
Commit c1b52615 authored by shaw's avatar shaw
Browse files

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.
parent 3af9940b
...@@ -299,11 +299,11 @@ const routes: RouteRecordRaw[] = [ ...@@ -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[] = [ ...@@ -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
} }
}, },
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment