Files
masonry/cmd/cli/templates/vue/Password.vue.tmpl

22 lines
513 B
Cheetah

<template>
<div>
<main>
Username and password form <br>
<button class="bg-blue-400 pl-4 pr-4 pt-2 pb-2 cursor-pointer rounded-2xl" @click="login">Login</button>
</main>
</div>
</template>
<script setup lang="ts">
import { useAuthenticationStore } from '@/stores/authentication.ts'
import { useRouter } from 'vue-router'
const router = useRouter();
function login() {
const authenticationStore = useAuthenticationStore();
authenticationStore.login();
router.push('/');
}
</script>