diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2023-12-26 14:19:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-26 14:19:35 +0900 |
| commit | 75034d9240c069baff5a24409ea172374261ea3b (patch) | |
| tree | 2b701b310befef3cdd6a69e78b75f66d48809826 /packages/frontend/src/components/MkSignin.vue | |
| parent | (dev) Issue Templateに、自分で実装してPRを出したいかの意思... (diff) | |
| download | misskey-75034d9240c069baff5a24409ea172374261ea3b.tar.gz misskey-75034d9240c069baff5a24409ea172374261ea3b.tar.bz2 misskey-75034d9240c069baff5a24409ea172374261ea3b.zip | |
refactor(frontend): Reactivityで型を明示するように (#12791)
* refactor(frontend): Reactivityで型を明示するように
* fix: プロパティの参照が誤っているのを修正
* fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
Diffstat (limited to 'packages/frontend/src/components/MkSignin.vue')
| -rw-r--r-- | packages/frontend/src/components/MkSignin.vue | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/packages/frontend/src/components/MkSignin.vue b/packages/frontend/src/components/MkSignin.vue index 6051db1cad..2fc2c9ec5e 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<CredentialRequestOptions | null>(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<void> { 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); |