2022-05-21 02:23:55 -05:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { goto } from '$app/navigation';
|
|
|
|
|
import LoginForm from '$lib/components/forms/login-form.svelte';
|
2023-03-15 22:38:29 +01:00
|
|
|
import FullscreenContainer from '$lib/components/shared-components/fullscreen-container.svelte';
|
|
|
|
|
import { AppRoute } from '$lib/constants';
|
|
|
|
|
import { loginPageMessage } from '$lib/constants';
|
|
|
|
|
import type { PageData } from './$types';
|
|
|
|
|
|
|
|
|
|
export let data: PageData;
|
2022-05-21 02:23:55 -05:00
|
|
|
</script>
|
|
|
|
|
|
2023-03-15 22:38:29 +01:00
|
|
|
<FullscreenContainer title={data.meta.title} showMessage={!!loginPageMessage}>
|
|
|
|
|
<p slot="message">
|
2023-05-18 17:43:09 +02:00
|
|
|
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
|
2023-03-15 22:38:29 +01:00
|
|
|
{@html loginPageMessage}
|
|
|
|
|
</p>
|
|
|
|
|
|
2023-02-15 18:56:54 +01:00
|
|
|
<LoginForm
|
2023-03-15 22:38:29 +01:00
|
|
|
authConfig={data.authConfig}
|
|
|
|
|
on:success={() => goto(AppRoute.PHOTOS, { invalidateAll: true })}
|
|
|
|
|
on:first-login={() => goto(AppRoute.AUTH_CHANGE_PASSWORD)}
|
2023-02-15 18:56:54 +01:00
|
|
|
/>
|
2023-03-15 22:38:29 +01:00
|
|
|
</FullscreenContainer>
|