asegurnado paginas administrativas #88 #89

Merged
mono merged 6 commits from secure_admin_pages_#88 into main 2025-01-11 19:24:43 -05:00
Showing only changes of commit 0dec800637 - Show all commits

View File

@ -1,7 +1,35 @@
<template> <template>
<ReconciliationJar /> <v-dialog v-model="dialog" persistent>
<v-card>
<v-card-title>
Ingrese el código
</v-card-title>
<v-card-text>
<v-form id="code-form" @submit.prevent="verifyCode">
<v-text-field v-model="code" label="Código" type="password" autocomplete="off" />
</v-form>
</v-card-text>
<v-card-actions>
<v-btn type="submit" form="code-form">Aceptar</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
<ReconciliationJar v-if="codeCorrect" />
</template> </template>
<script setup> <script setup>
// import { ref } from 'vue'
const dialog = ref(true)
const code = ref('')
const codeCorrect = ref(false)
function verifyCode() {
if (code.value === 'sin seguridad') {
codeCorrect.value = true;
dialog.value = false;
} else {
alert('Código incorrecto');
}
}
</script> </script>