2022-11-27 11:44:29 +00:00
|
|
|
<script lang="ts">
|
|
|
|
import {
|
|
|
|
Alert,
|
|
|
|
Container,
|
|
|
|
} from 'sveltestrap';
|
|
|
|
|
|
|
|
import ForgottenPasswordForm from '$lib/components/ForgottenPasswordForm.svelte';
|
|
|
|
import RecoverAccountForm from '$lib/components/RecoverAccountForm.svelte';
|
|
|
|
|
|
|
|
let error = "";
|
2023-05-05 09:12:33 +00:00
|
|
|
export let data;
|
2022-11-27 11:44:29 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<Container class="my-3">
|
|
|
|
{#if error}
|
|
|
|
<Alert color="danger">
|
|
|
|
{error}
|
|
|
|
</Alert>
|
2023-05-05 09:12:33 +00:00
|
|
|
{:else if data.user && data.key}
|
|
|
|
<RecoverAccountForm user={data.user} key={data.key} />
|
2022-11-27 11:44:29 +00:00
|
|
|
{:else}
|
2023-05-05 09:12:33 +00:00
|
|
|
<ForgottenPasswordForm />
|
2022-11-27 11:44:29 +00:00
|
|
|
{/if}
|
|
|
|
</Container>
|