summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann150 <johann.galle@protonmail.com>2022-05-23 22:43:13 +0200
committerGitHub <noreply@github.com>2022-05-23 22:43:13 +0200
commitf90c947036dc6d9c0b7e4ea7cfa1dc53a0b98c15 (patch)
treedee269154662ecb8bcf080be023dfb7de51ceddc
parentfix(client): fix undefined data value on 2FA settings (#8725) (diff)
downloadsharkey-f90c947036dc6d9c0b7e4ea7cfa1dc53a0b98c15.tar.gz
sharkey-f90c947036dc6d9c0b7e4ea7cfa1dc53a0b98c15.tar.bz2
sharkey-f90c947036dc6d9c0b7e4ea7cfa1dc53a0b98c15.zip
fix(client): wrong scoping breaks 2FA
-rw-r--r--packages/client/src/components/signin.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/client/src/components/signin.vue b/packages/client/src/components/signin.vue
index e3d92dc431..d283a758a6 100644
--- a/packages/client/src/components/signin.vue
+++ b/packages/client/src/components/signin.vue
@@ -106,8 +106,8 @@ const props = defineProps({
function onUsernameChange() {
os.api('users/show', {
username: username
- }).then(user => {
- user = user;
+ }).then(userResponse => {
+ user = userResponse;
}, () => {
user = null;
});