auth
This commit is contained in:
@@ -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 }));
|
||||
|
||||
Reference in New Issue
Block a user