24 lines
573 B
Vue
24 lines
573 B
Vue
<template>
|
|
<AuthorizationEmailConfirmation :email="email" :resend-fn="resend">
|
|
<div v-html="$t('register_email_instructions')" />
|
|
</AuthorizationEmailConfirmation>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
definePageMeta({
|
|
layout: 'auth',
|
|
pageTransition: { name: 'fade', mode: 'out-in' },
|
|
validate: route => !!route.query.email,
|
|
middleware: ['guest-only'],
|
|
})
|
|
|
|
const { query } = useRoute()
|
|
const { resendVerificationCode } = useAuth()
|
|
|
|
const email = computed(() => query.email!.toString())
|
|
|
|
function resend() {
|
|
resendVerificationCode(email.value)
|
|
}
|
|
</script>
|