|
@@ -2,6 +2,7 @@
|
|
import { goto } from '$app/navigation';
|
|
import { goto } from '$app/navigation';
|
|
import { session } from '$app/stores';
|
|
import { session } from '$app/stores';
|
|
import { sendLoginForm } from '$lib/auth-api';
|
|
import { sendLoginForm } from '$lib/auth-api';
|
|
|
|
+ import { loginPageMessage } from '$lib/constants';
|
|
import { createEventDispatcher } from 'svelte';
|
|
import { createEventDispatcher } from 'svelte';
|
|
|
|
|
|
let error: string;
|
|
let error: string;
|
|
@@ -43,6 +44,16 @@
|
|
<h1 class="text-2xl text-immich-primary font-medium">Login</h1>
|
|
<h1 class="text-2xl text-immich-primary font-medium">Login</h1>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+ {#if loginPageMessage}
|
|
|
|
+ <!-- <div class="bg-blue-100 m-4 p-2 border-t border-b border-blue-500 text-blue-700" role="alert">
|
|
|
|
+ <p>{@html loginPageMessage}</p>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <p class="text-sm border rounded-md m-4 p-4 text-immich-primary font-medium bg-immich-primary/5">
|
|
|
|
+ {@html loginPageMessage}
|
|
|
|
+ </p>
|
|
|
|
+ {/if}
|
|
|
|
+
|
|
<form on:submit|preventDefault={login} method="post" action="" autocomplete="off">
|
|
<form on:submit|preventDefault={login} method="post" action="" autocomplete="off">
|
|
<div class="m-4 flex flex-col gap-2">
|
|
<div class="m-4 flex flex-col gap-2">
|
|
<label class="immich-form-label" for="email">Email</label>
|
|
<label class="immich-form-label" for="email">Email</label>
|