fix: 🐛 use correct 2fa value
This commit is contained in:
parent
9c16c879de
commit
b148338b78
|
@ -106,6 +106,7 @@
|
|||
:num-inputs="6"
|
||||
v-model="token"
|
||||
:should-auto-focus="true"
|
||||
@on-change="updateToken"
|
||||
@on-complete="onSubmit"
|
||||
required
|
||||
/>
|
||||
|
@ -158,6 +159,7 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import Vue3OtpInput from "vue3-otp-input";
|
||||
import { ref } from "vue";
|
||||
import { defineAsyncComponent } from "vue";
|
||||
import { toUnicode } from "punycode/";
|
||||
import MkButton from "@/components/MkButton.vue";
|
||||
|
@ -183,6 +185,10 @@ let queryingKey = $ref(false);
|
|||
let hCaptchaResponse = $ref(null);
|
||||
let reCaptchaResponse = $ref(null);
|
||||
|
||||
const updateToken = (value: string) => {
|
||||
token = value;
|
||||
};
|
||||
|
||||
const meta = $computed(() => instance);
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
|
|
@ -799,8 +799,8 @@ hr {
|
|||
}
|
||||
|
||||
._otp_input {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 5px;
|
||||
margin: 1rem 7px auto;
|
||||
font-size: 20px;
|
||||
|
@ -810,9 +810,6 @@ hr {
|
|||
color: var(--fg);
|
||||
text-align: center;
|
||||
}
|
||||
._otp_input.is-complete {
|
||||
border-color: var(--success) !important;
|
||||
}
|
||||
._otp_input.error {
|
||||
border-color: var(--error) !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue