fix
This commit is contained in:
parent
463ab17c8f
commit
754a0940d8
|
@ -263,6 +263,16 @@ async function tryLogin(req: Partial<Misskey.entities.SigninRequest>): Promise<M
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
onSigninApiError(err);
|
onSigninApiError(err);
|
||||||
return Promise.reject(err);
|
return Promise.reject(err);
|
||||||
|
}).finally(() => {
|
||||||
|
if (doingPasskeyFromInputPage.value === true) {
|
||||||
|
doingPasskeyFromInputPage.value = false;
|
||||||
|
page.value = 'input';
|
||||||
|
password.value = '';
|
||||||
|
}
|
||||||
|
passwordPageEl.value?.resetCaptcha();
|
||||||
|
nextTick(() => {
|
||||||
|
waiting.value = false;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,16 +363,6 @@ function onSigninApiError(err?: any): void {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (doingPasskeyFromInputPage.value === true) {
|
|
||||||
doingPasskeyFromInputPage.value = false;
|
|
||||||
page.value = 'input';
|
|
||||||
password.value = '';
|
|
||||||
}
|
|
||||||
passwordPageEl.value?.resetCaptcha();
|
|
||||||
nextTick(() => {
|
|
||||||
waiting.value = false;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
|
|
Loading…
Reference in New Issue