initial
This commit is contained in:
23
apps/client/pages/reset-password/email-confirmation.vue
Normal file
23
apps/client/pages/reset-password/email-confirmation.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<AuthorizationEmailConfirmation :email="email" :resend-fn="resend">
|
||||
<div v-html="$t('reset_password_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 { requestResetPassword } = useAuth()
|
||||
|
||||
const email = computed(() => query.email!.toString())
|
||||
|
||||
function resend() {
|
||||
requestResetPassword(email.value)
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user