Login Fix

This commit is contained in:
Moritz Utcke
2024-12-20 09:27:09 +07:00
parent 9b384c4d4d
commit 522dac1d0c
2 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { addNotification } from "@ibcornelsen/ui";
import { loginClient } from "#lib/login";
import { loginClient } from "#lib/login.js";
export let navigate: (target: string) => void;
export let data: { email: string; passwort: string };

View File

@@ -64,6 +64,8 @@
return
}
loginOverlayHidden = true;
if (ausweis.uid) {
@@ -126,8 +128,7 @@
return false
}
async function ausweisAbschicken(e: SubmitEvent) {
e.preventDefault()
async function ausweisAbschicken() {
const result = await ausweisSpeichern();
if (result === true) {
@@ -149,4 +150,4 @@
</div>
</Overlay>
<button on:click={ausweisAbschicken} class="button">Weiter</button>
<button on:click={ausweisAbschicken} type="button" class="button">Weiter</button>