mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
fix: 🐛 use correct 2fa value
This commit is contained in:
parent
bc13bfdfec
commit
4d006813f4
2 changed files with 8 additions and 5 deletions
|
@ -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 a new issue