auth
This commit is contained in:
@@ -59,7 +59,7 @@ const tg_id = computed(() => {
|
|||||||
const login = async () => {
|
const login = async () => {
|
||||||
try {
|
try {
|
||||||
let response: string
|
let response: string
|
||||||
if (tg_id){
|
if (tg_id.id){
|
||||||
response = await apiClient.post('/auth/token/tg', qs.stringify({ tg_id: tg_id.value }));
|
response = await apiClient.post('/auth/token/tg', qs.stringify({ tg_id: tg_id.value }));
|
||||||
} else {
|
} else {
|
||||||
response = await apiClient.post('/auth/token', qs.stringify({ username: username.value, password: password.value }));
|
response = await apiClient.post('/auth/token', qs.stringify({ username: username.value, password: password.value }));
|
||||||
|
|||||||
Reference in New Issue
Block a user