mirror of https://github.com/Lukibeg/OmniBoard.git
68 lines
1.8 KiB
Vue
68 lines
1.8 KiB
Vue
<script setup>
|
|
import GuestLayout from '@/Layouts/GuestLayout.vue';
|
|
import InputError from '@/Components/InputError.vue';
|
|
import InputLabel from '@/Components/InputLabel.vue';
|
|
import PrimaryButton from '@/Components/PrimaryButton.vue';
|
|
import TextInput from '@/Components/TextInput.vue';
|
|
import { Head, useForm } from '@inertiajs/vue3';
|
|
|
|
defineProps({
|
|
status: {
|
|
type: String,
|
|
},
|
|
});
|
|
|
|
const form = useForm({
|
|
email: '',
|
|
});
|
|
|
|
const submit = () => {
|
|
form.post(route('password.email'));
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<GuestLayout>
|
|
<Head title="Forgot Password" />
|
|
|
|
<div class="mb-4 text-sm text-gray-600">
|
|
Esqueceu sua senha? Sem problemas! Apenas nos deixe saber seu endereço de e-mail
|
|
e nós enviaremos um link de redefinição para sua senha!
|
|
</div>
|
|
|
|
<div
|
|
v-if="status"
|
|
class="mb-4 text-sm font-medium text-green-600"
|
|
>
|
|
{{ status }}
|
|
</div>
|
|
|
|
<form @submit.prevent="submit">
|
|
<div>
|
|
<InputLabel for="email" value="Email" />
|
|
|
|
<TextInput
|
|
id="email"
|
|
type="email"
|
|
class="mt-1 block w-full"
|
|
v-model="form.email"
|
|
required
|
|
autofocus
|
|
autocomplete="username"
|
|
/>
|
|
|
|
<InputError class="mt-2" :message="form.errors.email" />
|
|
</div>
|
|
|
|
<div class="mt-4 flex items-center justify-end">
|
|
<PrimaryButton
|
|
:class="{ 'opacity-25': form.processing }"
|
|
:disabled="form.processing"
|
|
>
|
|
Enviar e-mail de redefinição de senha!
|
|
</PrimaryButton>
|
|
</div>
|
|
</form>
|
|
</GuestLayout>
|
|
</template>
|