From 943e2240bfcfcffe562d9e714de5b76bf777c198 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 13:13:02 -0700 Subject: [PATCH] Allow email update from the verify email modal (#2911) * Initial plan * Add update email address option to verify email modal Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com> --- .../account/sendVerificationEmailModal.svelte | 159 +++++++++++++----- src/lib/elements/forms/inputEmail.svelte | 3 +- 2 files changed, 120 insertions(+), 42 deletions(-) diff --git a/src/lib/components/account/sendVerificationEmailModal.svelte b/src/lib/components/account/sendVerificationEmailModal.svelte index 1385570f8..7fb576bbf 100644 --- a/src/lib/components/account/sendVerificationEmailModal.svelte +++ b/src/lib/components/account/sendVerificationEmailModal.svelte @@ -1,7 +1,8 @@
- - - - - To continue using Appwrite Cloud, please verify your email address. An email - will be sent to {email || get(user)?.email} - - - logout()}>Switch account - - {#if emailSent && resendTimer > 0} -
- + + + + To continue using Appwrite Cloud, please verify your email address. An email + will be sent to - Didn't get the email? Try again in {resendTimer}s - -
- {/if} -
-
+ style="display: inline;">{email || get(user)?.email} + - - - -
+ + Wrong email? { + showUpdateEmail = true; + error = null; + }}>Update email address or logout()}>Switch account + + + {#if emailSent && resendTimer > 0} +
+ + Didn't get the email? Try again in {resendTimer}s + +
+ {/if} + + + + + + + + {:else} + + + + + + + + + + {/if}