LogicTrail
  • Trails
  • Check my app
  • Pricing
  • Sign in
  1. Trails
  2. /
  3. Accounts and privacy
  4. · 3 minutes · Pro

The quiet email change

Someone used a customer's unlocked laptop for two minutes, changed the account's email to their own, then reset the password. The customer is locked out of their own account.

This answers: Should changing email need confirmation? No coding needed. 3 quick decisions.

  • Who is signed in
  • Who may see what

Checking your access…

Should changing email need confirmation?

Yes. The email receives reset links and login codes, so changing it is as sensitive as changing the password. Ask for the current password, confirm the new address with a link, and notify the old address with a way to undo. In Auth, keep 'Secure email change' on so both addresses must confirm.

Trail of the bug
  1. Stranger
  2. Browser
  3. Auth service

Breaks at Auth service: Email changed with no confirmation

Why AI tools write this bug

AI-built profile pages often save the email field straight to the database like any other field, bypassing the auth provider's confirmation flow.

How to fix it

  1. Change emails only through your auth provider's flow.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock

Common questions

Why notify the old address?
If the change wasn't the owner, that email is how they find out in time to undo it.

Related scenarios

  • Invoice 105Free · 4 min
  • Removed, but still insideFree · 4 min
  • The admin buttonPro · 4 min

More on this trail

Accounts and privacy: Login codes, reset links, email changes, account deletion and customer data sent to AI.

Want someone to look?

We check AI-built apps for this and three other common leaks, in plain English.

Check my app
Sign in

Sign in to walk this one

3 decisions, about 3 minutes, and a prompt to check your own app for the same problem.

Sign in No password. We email you a link.

How to fix it

  1. Change emails only through your auth provider's flow.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock