Login Fix
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user