How a 'pending_email' state fixes broken email verification on app restart
A desktop app had a two-part bug where closing it before clicking a verification link caused users to re-enter their email on restart, which invalidated the original link. The root cause was that the app only tracked two states — 'not registered' or 'registered' — with no intermediate 'awaiting verification' state. The fix saves the target email address as 'pending_email' in a local config file the moment the server confirms a successful send. On restart, the app reads this field and skips straight to the verification-waiting screen instead of showing the email input again. The pending_email entry is saved only on a confirmed successful send, ensuring users are never left waiting for an email that was never dispatched.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in