mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
fix(frontend): MkSignin.vueのcredentialRequestからReactivityを削除 (#14223)
* Remove reactivity from credentialRequest in MkSignin.vue * Update Changelog
This commit is contained in:
parent
1001277d43
commit
3b075c9c44
@ -28,6 +28,7 @@
|
|||||||
- Fix: テーマプレビューが見れない問題を修正
|
- Fix: テーマプレビューが見れない問題を修正
|
||||||
- Fix: ショートカットキーが連打できる問題を修正
|
- Fix: ショートカットキーが連打できる問題を修正
|
||||||
(Cherry-picked from https://github.com/taiyme/misskey/pull/234)
|
(Cherry-picked from https://github.com/taiyme/misskey/pull/234)
|
||||||
|
- Fix: MkSignin.vueのcredentialRequestからReactivityを削除(ProxyがPasskey認証処理に渡ることを避けるため)
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Feat: レートリミット制限に引っかかったときに`Retry-After`ヘッダーを返すように (#13949)
|
- Feat: レートリミット制限に引っかかったときに`Retry-After`ヘッダーを返すように (#13949)
|
||||||
|
@ -87,7 +87,7 @@ const host = ref(toUnicode(configHost));
|
|||||||
const totpLogin = ref(false);
|
const totpLogin = ref(false);
|
||||||
const isBackupCode = ref(false);
|
const isBackupCode = ref(false);
|
||||||
const queryingKey = ref(false);
|
const queryingKey = ref(false);
|
||||||
const credentialRequest = ref<CredentialRequestOptions | null>(null);
|
let credentialRequest: CredentialRequestOptions | null = null;
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(ev: 'login', v: any): void;
|
(ev: 'login', v: any): void;
|
||||||
@ -122,14 +122,14 @@ function onLogin(res: any): Promise<void> | void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function queryKey(): Promise<void> {
|
async function queryKey(): Promise<void> {
|
||||||
if (credentialRequest.value == null) return;
|
if (credentialRequest == null) return;
|
||||||
queryingKey.value = true;
|
queryingKey.value = true;
|
||||||
await webAuthnRequest(credentialRequest.value)
|
await webAuthnRequest(credentialRequest)
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
queryingKey.value = false;
|
queryingKey.value = false;
|
||||||
return Promise.reject(null);
|
return Promise.reject(null);
|
||||||
}).then(credential => {
|
}).then(credential => {
|
||||||
credentialRequest.value = null;
|
credentialRequest = null;
|
||||||
queryingKey.value = false;
|
queryingKey.value = false;
|
||||||
signing.value = true;
|
signing.value = true;
|
||||||
return misskeyApi('signin', {
|
return misskeyApi('signin', {
|
||||||
@ -160,7 +160,7 @@ function onSubmit(): void {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
totpLogin.value = true;
|
totpLogin.value = true;
|
||||||
signing.value = false;
|
signing.value = false;
|
||||||
credentialRequest.value = parseRequestOptionsFromJSON({
|
credentialRequest = parseRequestOptionsFromJSON({
|
||||||
publicKey: res,
|
publicKey: res,
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user