From 8daff4a998e9b8371f59de7af8909dd8dfc39a9e Mon Sep 17 00:00:00 2001 From: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Date: Tue, 26 Dec 2023 14:19:35 +0900 Subject: refactor(frontend): Reactivityで型を明示するように (#12791) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor(frontend): Reactivityで型を明示するように * fix: プロパティの参照が誤っているのを修正 * fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え --- packages/frontend/src/components/MkSignin.vue | 8 -------- 1 file changed, 8 deletions(-) (limited to 'packages/frontend/src/components/MkSignin.vue') diff --git a/packages/frontend/src/components/MkSignin.vue b/packages/frontend/src/components/MkSignin.vue index 08830fca7a..c884ce53ea 100644 --- a/packages/frontend/src/components/MkSignin.vue +++ b/packages/frontend/src/components/MkSignin.vue @@ -71,8 +71,6 @@ const host = ref(toUnicode(configHost)); const totpLogin = ref(false); const queryingKey = ref(false); const credentialRequest = ref(null); -const hCaptchaResponse = ref(null); -const reCaptchaResponse = ref(null); const emit = defineEmits<{ (ev: 'login', v: any): void; @@ -126,8 +124,6 @@ async function queryKey(): Promise { username: username.value, password: password.value, credential: credential.toJSON(), - 'hcaptcha-response': hCaptchaResponse.value, - 'g-recaptcha-response': reCaptchaResponse.value, }); }).then(res => { emit('login', res); @@ -149,8 +145,6 @@ function onSubmit(): void { os.api('signin', { username: username.value, password: password.value, - 'hcaptcha-response': hCaptchaResponse.value, - 'g-recaptcha-response': reCaptchaResponse.value, }).then(res => { totpLogin.value = true; signing.value = false; @@ -168,8 +162,6 @@ function onSubmit(): void { os.api('signin', { username: username.value, password: password.value, - 'hcaptcha-response': hCaptchaResponse.value, - 'g-recaptcha-response': reCaptchaResponse.value, token: user.value?.twoFactorEnabled ? token.value : undefined, }).then(res => { emit('login', res); -- cgit v1.2.3-freya