diff --git a/src/components/auth/LoginView.vue b/src/components/auth/LoginView.vue index d79d26f..c952735 100644 --- a/src/components/auth/LoginView.vue +++ b/src/components/auth/LoginView.vue @@ -59,7 +59,7 @@ const tg_id = computed(() => { const login = async () => { try { let response: string - if (tg_id){ + if (tg_id.id){ response = await apiClient.post('/auth/token/tg', qs.stringify({ tg_id: tg_id.value })); } else { response = await apiClient.post('/auth/token', qs.stringify({ username: username.value, password: password.value }));