This commit is contained in:
Dovi Cowan 2023-11-01 23:41:48 +00:00
parent c5d3a1ea09
commit 5ebcbb0ced
Signed by: dcowan
GPG key ID: CC4A4CB950D7E579

View file

@ -1,10 +1,23 @@
<script> <script>
import { logOut, loggedInUser } from "./appwrite"; import { account, logOut, loggedInUser } from "./appwrite";
</script> </script>
<div class="">Welcome, {loggedInUser.name} <a href="#" class="text-blue-400" on:click={logOut}>Log out</a></div> <div class="">
Welcome, {loggedInUser.name}
<a href="#" class="text-blue-400" on:click={logOut}>Log out</a>
</div>
{#if !loggedInUser.emailVerification} {#if !loggedInUser.emailVerification}
<div class="">You have not verified your email address yet</div> <div class="">
You have not verified your email address yet <a
href="#"
class="text-blue-400"
on:click={() =>
account.createVerification(
window.location.protocol +
"//" +
window.location.host +
"/register/emailVerify",
)}>Resend verification email</a
>
</div>
{/if} {/if}