remove default password and header (#984)
This commit is contained in:
parent
602f248541
commit
5310a94478
2 changed files with 27 additions and 3 deletions
19
frontend/layouts/blank.vue
Normal file
19
frontend/layouts/blank.vue
Normal 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>
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue