Skip to content

Allow email update from the verify email modal#2911

Merged
stnguyen90 merged 2 commits intomainfrom
copilot/update-email-verification-modal
Mar 12, 2026
Merged

Allow email update from the verify email modal#2911
stnguyen90 merged 2 commits intomainfrom
copilot/update-email-verification-modal

Conversation

Copy link
Contributor

Copilot AI commented Mar 11, 2026

Users with an incorrect email were trapped in the verification modal with no escape path other than switching accounts. This adds an inline "Update email address" flow to the modal.

Changes

sendVerificationEmailModal.svelte

  • Replaces the standalone "Switch account" link with "Wrong email? Update email address or Switch account"
  • "Update email address" switches to a second modal view (showUpdateEmail state) — dismissible, pre-fills current email, requires password confirmation
  • Cancel / X both call resetUpdateEmailForm() which clears email, password, error state and returns to the verify view
  • updateEmail() calls account.updateEmail(), invalidates ACCOUNT dependency on success, tracks via Submit.AccountUpdateEmail

inputEmail.svelte

  • Adds optional helper prop (falls back to validation error when set) so the email input can surface "You'll need access to this email to verify your account"

Screenshots

Verify modal Update email modal
verify update

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • o1.ingest.sentry.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/console/console/node_modules/.bin/vitest run (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@appwrite
Copy link

appwrite bot commented Mar 11, 2026

Console (appwrite/console)

Project ID: 688b7bf400350cbd60e9

Sites (1)
Site Status Logs Preview QR
 console-stage
688b7cf6003b1842c9dc
Ready Ready View Logs Preview URL QR Code

Tip

Schedule functions to run as often as every minute with cron expressions

Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
Copilot AI changed the title [WIP] Update modal to allow email address change for users Allow email update from the verify email modal Mar 11, 2026
@stnguyen90 stnguyen90 marked this pull request as ready for review March 11, 2026 21:37
@stnguyen90 stnguyen90 merged commit 943e224 into main Mar 12, 2026
3 checks passed
@stnguyen90 stnguyen90 deleted the copilot/update-email-verification-modal branch March 12, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants