💄 Added info that email was confirmed successfully
This commit is contained in:
@@ -1,12 +1,18 @@
|
|||||||
<script context="module" lang="ts">
|
<script context="module" lang="ts">
|
||||||
export async function load({ session }) {
|
export async function load({ session, url }) {
|
||||||
|
const verified = url.searchParams.get('verified');
|
||||||
if (session.authenticated) {
|
if (session.authenticated) {
|
||||||
return {
|
return {
|
||||||
status: 302,
|
status: 302,
|
||||||
redirect: '/overview'
|
redirect: '/overview'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {};
|
return {
|
||||||
|
status: 200,
|
||||||
|
props: {
|
||||||
|
verified: verified !== null
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -22,6 +28,8 @@
|
|||||||
|
|
||||||
navbarVisible.set(true);
|
navbarVisible.set(true);
|
||||||
|
|
||||||
|
export let verified: boolean;
|
||||||
|
|
||||||
let loginData = {
|
let loginData = {
|
||||||
email: '',
|
email: '',
|
||||||
password: ''
|
password: ''
|
||||||
@@ -55,6 +63,7 @@
|
|||||||
Cookies.set('reload', String(parseInt(cookie) + 1), { expires: expireIn60Sec });
|
Cookies.set('reload', String(parseInt(cookie) + 1), { expires: expireIn60Sec });
|
||||||
}
|
}
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkRememberMe = async () => {
|
const checkRememberMe = async () => {
|
||||||
@@ -96,6 +105,36 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
<div class="flex items-center justify-center h-full px-4">
|
<div class="flex items-center justify-center h-full px-4">
|
||||||
<div>
|
<div>
|
||||||
|
{#if verified}
|
||||||
|
<div
|
||||||
|
class="flex items-center justify-center p-4 text-green-700 border-2 border-current rounded-lg bg-white"
|
||||||
|
role="alert"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
width="24"
|
||||||
|
height="24"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
class="w-6 h-6"
|
||||||
|
fill="none"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M10.2426 16.3137L6 12.071L7.41421 10.6568L10.2426 13.4853L15.8995 7.8284L17.3137 9.24262L10.2426 16.3137Z"
|
||||||
|
fill="currentColor"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
fill-rule="evenodd"
|
||||||
|
clip-rule="evenodd"
|
||||||
|
d="M1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12ZM12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21Z"
|
||||||
|
fill="currentColor"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
|
||||||
|
<h3 class="ml-3 text-sm font-medium">
|
||||||
|
You've successfully confirmed your email address.
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
<span class="p-4" />
|
<span class="p-4" />
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -60,8 +60,9 @@
|
|||||||
<p>
|
<p>
|
||||||
You'll have to set up a storage provider for some pictures (these getting imported from
|
You'll have to set up a storage provider for some pictures (these getting imported from
|
||||||
KAHOOT!). For now, you can use <a href="https://deta.sh">Deta</a> or the local filesystem.
|
KAHOOT!). For now, you can use <a href="https://deta.sh">Deta</a> or the local filesystem.
|
||||||
Please note that I would <b>NOT</b> use the local file system because of these funny path-things. I tried to
|
Please note that I would <b>NOT</b> use the local file system because of these funny
|
||||||
prevent these attacks, but i really wouldn't trust it. You'll have to set the
|
path-things. I tried to prevent these attacks, but i really wouldn't trust it. You'll have
|
||||||
|
to set the
|
||||||
<code>STORAGE_BACKEND</code>-environment-variable to either <code>deta</code> or
|
<code>STORAGE_BACKEND</code>-environment-variable to either <code>deta</code> or
|
||||||
<code>local</code>.
|
<code>local</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user