remove default password and header (#984)

This commit is contained in:
Hayden 2022-02-20 15:14:31 -09:00 committed by GitHub
parent 602f248541
commit 5310a94478
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 3 deletions

View file

@ -0,0 +1,19 @@
<template>
<v-app dark>
<TheSnackbar />
<v-main>
<v-scroll-x-transition>
<Nuxt />
</v-scroll-x-transition>
</v-main>
</v-app>
</template>
<script lang="ts">
import { defineComponent } from "@nuxtjs/composition-api";
import TheSnackbar from "~/components/Layout/TheSnackbar.vue";
export default defineComponent({
components: { TheSnackbar },
});
</script>

View file

@ -195,15 +195,15 @@
import { defineComponent, ref, useContext, computed, reactive } from "@nuxtjs/composition-api";
import { alert } from "~/composables/use-toast";
export default defineComponent({
layout: "basic",
layout: "blank",
setup() {
const { $auth } = useContext();
const context = useContext();
const form = reactive({
email: "changeme@email.com",
password: "MyPassword",
email: "",
password: "",
remember: false,
});
@ -212,6 +212,11 @@ export default defineComponent({
const allowSignup = computed(() => context.env.ALLOW_SIGNUP as boolean);
async function authenticate() {
if (form.email.length === 0 || form.password.length === 0) {
alert.error("Please enter your email and password");
return;
}
loggingIn.value = true;
const formData = new FormData();
formData.append("username", form.email);