Database imports gefixt + Ausweis speichern verbessert
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
import { addNotification } from "@ibcornelsen/ui";
|
||||
import { client } from "src/trpc";
|
||||
|
||||
export let navigate: (target: string) => void;
|
||||
export let onRegister: (response: { email: string, name: string, vorname: string }) => void;
|
||||
let passwort: string;
|
||||
let email: string;
|
||||
let vorname: string;
|
||||
@@ -16,12 +18,16 @@
|
||||
name,
|
||||
});
|
||||
|
||||
window.location.href = "/auth/embedded-login";
|
||||
onRegister({
|
||||
email,
|
||||
name,
|
||||
vorname
|
||||
})
|
||||
} catch (e) {
|
||||
addNotification({
|
||||
message: "Ups...",
|
||||
subtext:
|
||||
"Da ist wohl etwas schiefgelaufen... Diese Email Adresse ist bereits in Benutzung, haben sie vielleicht bereits ein Konto bei uns?",
|
||||
"Da ist wohl etwas schiefgelaufen. Diese Email Adresse ist bereits in Benutzung, haben sie vielleicht bereits ein Konto bei uns?",
|
||||
type: "error",
|
||||
timeout: 0,
|
||||
dismissable: true,
|
||||
@@ -31,7 +37,7 @@
|
||||
</script>
|
||||
|
||||
<div style="width:50%;margin: 0 auto">
|
||||
<h1>Registrieren:</h1>
|
||||
<h1>Registrieren</h1>
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="flex flex-row gap-4 w-full">
|
||||
<div class="w-1/2">
|
||||
@@ -77,7 +83,7 @@
|
||||
</div>
|
||||
<button class="button" on:click={login}>Registrieren</button>
|
||||
<div class="flex-row justify-between" style="margin-top: 10px">
|
||||
<a href="/auth/embedded-login">Einloggen</a>
|
||||
<button on:click={() => navigate("login")}>Einloggen</button>
|
||||
<a href="/user/passwort_vergessen">Passwort Vergessen?</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user