auth
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<div class="flex items-center justify-center h-screen bg-gray-100">
|
||||
<div class="w-full max-w-sm p-6 bg-white rounded-lg shadow-md">
|
||||
<h2 class="text-2xl font-bold text-center mb-6">Вход</h2>
|
||||
{{tg_id}}
|
||||
<form @submit.prevent="login">
|
||||
<div class="mb-4">
|
||||
<label class="block text-gray-700 text-sm font-bold mb-2" for="username">Логин</label>
|
||||
@@ -54,6 +55,7 @@ const tg_id = computed(() => {
|
||||
// Получаем информацию о пользователе и выводим её
|
||||
return tg.initDataUnsafe.user.id
|
||||
}
|
||||
else return 567047
|
||||
})
|
||||
|
||||
const login = async () => {
|
||||
|
||||
Reference in New Issue
Block a user