generated from pascalmartineau/wp-skeleton
feat: Initial Nuxt app
This commit is contained in:
12
wp-content/themes/ccat/app/pages/auth.vue
Normal file
12
wp-content/themes/ccat/app/pages/auth.vue
Normal file
@@ -0,0 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
definePageMeta({ layout: "auth" });
|
||||
|
||||
const { loggedIn } = useUserSession();
|
||||
|
||||
useSeoMeta({ title: loggedIn.value ? "Déconnexion" : "Connexion" });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<LogoutForm v-if="loggedIn" />
|
||||
<LoginForm v-else />
|
||||
</template>
|
||||
Reference in New Issue
Block a user