Files
cultureat-bak/wp-content/themes/ccat/app/pages/connexion.vue
Pascal Martineau a863da3e40
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 1m1s
feat: isRedirecting auth
2025-09-18 14:39:47 -04:00

19 lines
433 B
Vue

<script setup lang="ts">
definePageMeta({ layout: "auth" });
const { isLoggedIn } = useAuth();
const { isRedirecting } = useAuthActions();
useSeoMeta({ title: isLoggedIn.value ? "Déconnexion" : "Connexion" });
</script>
<template>
<AuthState>
<AuthRedirecting v-if="isRedirecting" />
<template v-else>
<AuthLogoutForm v-if="isLoggedIn" />
<AuthLoginForm v-else />
</template>
</AuthState>
</template>