mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
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 { defineComponent, ref, useContext, computed, reactive } from "@nuxtjs/composition-api";
|
||||||
import { alert } from "~/composables/use-toast";
|
import { alert } from "~/composables/use-toast";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
layout: "basic",
|
layout: "blank",
|
||||||
|
|
||||||
setup() {
|
setup() {
|
||||||
const { $auth } = useContext();
|
const { $auth } = useContext();
|
||||||
const context = useContext();
|
const context = useContext();
|
||||||
|
|
||||||
const form = reactive({
|
const form = reactive({
|
||||||
email: "changeme@email.com",
|
email: "",
|
||||||
password: "MyPassword",
|
password: "",
|
||||||
remember: false,
|
remember: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -212,6 +212,11 @@ export default defineComponent({
|
||||||
const allowSignup = computed(() => context.env.ALLOW_SIGNUP as boolean);
|
const allowSignup = computed(() => context.env.ALLOW_SIGNUP as boolean);
|
||||||
|
|
||||||
async function authenticate() {
|
async function authenticate() {
|
||||||
|
if (form.email.length === 0 || form.password.length === 0) {
|
||||||
|
alert.error("Please enter your email and password");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
loggingIn.value = true;
|
loggingIn.value = true;
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("username", form.email);
|
formData.append("username", form.email);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue