From 3028f2b244c22dcf311ede5193e1b715f1fbf2b3 Mon Sep 17 00:00:00 2001 From: Vladimir Voronin Date: Fri, 25 Oct 2024 13:48:00 +0300 Subject: [PATCH] auth --- src/components/auth/LoginView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }));