Merge branch 'develop' into feature/2024.9.0
This commit is contained in:
commit
a44d58781f
@ -117,14 +117,19 @@ const props = withDefaults(defineProps<{
|
|||||||
});
|
});
|
||||||
|
|
||||||
function onUsernameChange(): void {
|
function onUsernameChange(): void {
|
||||||
|
const usernameRequested = username.value;
|
||||||
misskeyApi('users/show', {
|
misskeyApi('users/show', {
|
||||||
username: username.value,
|
username: usernameRequested,
|
||||||
}).then(userResponse => {
|
}).then(userResponse => {
|
||||||
user.value = userResponse;
|
if (userResponse.username === username.value) {
|
||||||
usePasswordLessLogin.value = userResponse.usePasswordLessLogin;
|
user.value = userResponse;
|
||||||
|
usePasswordLessLogin.value = userResponse.usePasswordLessLogin;
|
||||||
|
}
|
||||||
}, () => {
|
}, () => {
|
||||||
user.value = null;
|
if (usernameRequested === username.value) {
|
||||||
usePasswordLessLogin.value = true;
|
user.value = null;
|
||||||
|
usePasswordLessLogin.value = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user