Merge branch 'develop' into feature/2024.9.0

This commit is contained in:
dakkar 2024-10-12 20:00:40 +01:00
commit a44d58781f
1 changed files with 10 additions and 5 deletions

View File

@ -117,14 +117,19 @@ const props = withDefaults(defineProps<{
});
function onUsernameChange(): void {
const usernameRequested = username.value;
misskeyApi('users/show', {
username: username.value,
username: usernameRequested,
}).then(userResponse => {
user.value = userResponse;
usePasswordLessLogin.value = userResponse.usePasswordLessLogin;
if (userResponse.username === username.value) {
user.value = userResponse;
usePasswordLessLogin.value = userResponse.usePasswordLessLogin;
}
}, () => {
user.value = null;
usePasswordLessLogin.value = true;
if (usernameRequested === username.value) {
user.value = null;
usePasswordLessLogin.value = true;
}
});
}