91cb011ded
* CodeInput. verify-email page * middleware * Loading toast * Countdown only for registration * Improve middleware * Fix middleware breaking auth flow * Remove old notifications * Remove old onboarding. New segmentation * Remove skip button * Block verify email when verified * useUserEmails composable. Cancel addition * Move user emails queries * Fix fragments etc * redirect updates * HeaderWithEmptyPage * Check env before enforcing * Join workspace * Updates * Fix console warnings on login * Fix register console warnings * Working cache updates * Verify secondary email * Force onboarding off * EMAIL WIP * useIsJustRegistered state * Improve isRequired * Uneeded change * Improved slots * Updates from CR * CR comments * Only show message if forced * Update onboarding middleware * Update loading bar * ref > computed to fix onboarding * Resend tooltip. Better errors * Add other to form. * Email changes * Updates to emails * Remove force email FF * Remove FF's * Hide header on embed * Update graphql.ts * Re-add FF * Update graphql.ts * GQL Fragments * Fix build
32 lines
598 B
Vue
32 lines
598 B
Vue
<template>
|
|
<div>
|
|
<NuxtPage />
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { loginRoute } from '~~/lib/common/helpers/route'
|
|
|
|
/**
|
|
* Marking all auth/* pages as guest only & ensuring `/auth` can't be accessed as a page
|
|
* on its own
|
|
*/
|
|
|
|
definePageMeta({
|
|
layout: 'login-or-register',
|
|
middleware: [
|
|
'guest',
|
|
() => {
|
|
const { ssrContext } = useNuxtApp()
|
|
if (ssrContext) {
|
|
ssrContext.event.node.res.setHeader('x-frame-options', 'deny')
|
|
}
|
|
},
|
|
(to) => {
|
|
if (to.path === '/authn') {
|
|
return loginRoute
|
|
}
|
|
}
|
|
]
|
|
})
|
|
</script>
|