You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
58 lines
1.9 KiB
58 lines
1.9 KiB
<script setup> |
|
import { computed } from 'vue'; |
|
import AuthLayout from '@/Layouts/AuthLayout.vue'; |
|
import PrimaryButton from '@/Components/PrimaryButton.vue'; |
|
import { Head, Link, useForm } from '@inertiajs/vue3'; |
|
|
|
const props = defineProps({ |
|
status: { |
|
type: String, |
|
}, |
|
}); |
|
|
|
const form = useForm({}); |
|
|
|
const submit = () => { |
|
form.post(route('verification.send')); |
|
}; |
|
|
|
const verificationLinkSent = computed( |
|
() => props.status === 'verification-link-sent', |
|
); |
|
</script> |
|
|
|
<template> |
|
<AuthLayout> |
|
<Head title="Email Verification" /> |
|
|
|
<div class="mb-4 text-sm text-gray-600"> |
|
Merci de vous être inscrit! Avant de commencer, pouvez-vous vérifier votre adresse e-mail en cliquant sur le lien que nous venons de vous envoyer par e-mail ? Si vous n'avez pas reçu l'e-mail, nous serons heureux de vous en envoyer un autre. |
|
</div> |
|
|
|
<div |
|
class="mb-4 text-sm font-medium text-green-600" |
|
v-if="verificationLinkSent" |
|
> |
|
Un nouveau lien de vérification a été envoyé à l'adresse e-mail que vous avez fournie lors de votre inscription. |
|
</div> |
|
|
|
<form @submit.prevent="submit"> |
|
<div class="mt-4 flex items-center justify-between"> |
|
<PrimaryButton |
|
:class="{ 'opacity-25': form.processing }" |
|
:disabled="form.processing"> |
|
Renvoyer l'e-mail de vérification |
|
</PrimaryButton> |
|
|
|
<Link |
|
:href="route('logout')" |
|
method="post" |
|
as="button" |
|
class="rounded-md text-sm text-gray-600 underline hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2" |
|
> |
|
Log Out |
|
</Link> |
|
</div> |
|
</form> |
|
</AuthLayout> |
|
</template>
|
|
|