refactor(register): drop auth-store dependency from success.vue, rely on query param

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-05 19:52:13 +02:00
parent 4a4bd6c51e
commit 0dceb437f3
2 changed files with 2 additions and 9 deletions

View File

@@ -1,6 +1,4 @@
<script setup lang="ts">
import { usePortalAuthStore } from '@/stores/portal/usePortalAuthStore'
definePage({
name: 'register-success',
meta: {
@@ -10,11 +8,10 @@ definePage({
})
const route = useRoute('register-success')
const authStore = usePortalAuthStore()
const eventName = computed(() => (route.query.event as string) || 'het evenement')
const bannerUrl = computed(() => (route.query.banner as string) || null)
const isAuthenticated = computed(() => route.query.authenticated === '1' || authStore.isAuthenticated)
const isAuthenticated = computed(() => route.query.authenticated === '1')
</script>
<template>