This commit is contained in:
2025-12-10 04:47:06 +00:00
parent 809c762e43
commit 384bc1a302
3 changed files with 6 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import { useAuthStore } from "@/stores/auth";
const auth = useAuthStore();
const username = ref("");
const password = ref("");
const loggedIn = auth.loggedIn;
function handleLogin() {
auth.logIn(username.value, password.value);
@@ -16,7 +17,7 @@ function handleLogout() {
</script>
<template>
<div v-if="auth.loggedIn">
<div v-if="loggedIn">
<h1>Logged in</h1>
<p>{{ auth.user.ID }}</p>
<p>{{ auth.user.username }}</p>