mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 05:35:11 +00:00
Merge branch 'develop' into feature/2024.9.0
This commit is contained in:
commit
a44d58781f
1 changed files with 10 additions and 5 deletions
|
@ -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 => {
|
||||||
|
if (userResponse.username === username.value) {
|
||||||
user.value = userResponse;
|
user.value = userResponse;
|
||||||
usePasswordLessLogin.value = userResponse.usePasswordLessLogin;
|
usePasswordLessLogin.value = userResponse.usePasswordLessLogin;
|
||||||
|
}
|
||||||
}, () => {
|
}, () => {
|
||||||
|
if (usernameRequested === username.value) {
|
||||||
user.value = null;
|
user.value = null;
|
||||||
usePasswordLessLogin.value = true;
|
usePasswordLessLogin.value = true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue