Login button unresponsive for unverified users - should redirect to verification page #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug Description
When a user signs up but does not verify their email, the Login button on the landing page becomes unresponsive. Clicking it does nothing - no navigation, no error message, no feedback.
Steps to Reproduce
Actual Behavior
isAuthGateReady: falsestateExpected Behavior
VerifyEmailPage.tsx/VerifyEmailMobileScreen.tsx)Technical Notes
[Auth Gate] Module loaded, authInitialized: falseisLoading: false, isAuthenticated: false, isAuthGateReady: falsefrontend/src/features/auth/pages/VerifyEmailPage.tsxfrontend/src/features/auth/mobile/VerifyEmailMobileScreen.tsxInvestigation Areas
email_verifiedflag or application databaseAffected Pages
Milestone: Implementation Complete
Phase: Execution | Agent: Developer | Status: IN_PROGRESS
Investigation Summary
Analyzed the auth flow in
HomePage.tsxandApp.tsx:Root Cause: When an unverified user clicks Login:
isAuthenticatedis true (Auth0 session exists), navigates to/garageisAuthGateReady) may never become ready if token acquisition fails for unverified usersExisting Infrastructure:
localStorage.setItem('pendingVerificationEmail', email)is set during signup/verify-emailFix Implemented
File:
frontend/src/pages/HomePage.tsx:23-38Verification Status
Verdict: PASS | Next: Visual verification on staging
Final Review: Quality Agent Validation
Phase: Review | Agent: Quality Agent | Status: PASS
RULE 0/1/2 Analysis
Verification Summary
handleAuthActionused in 5 places (desktop nav, mobile menu, hero carousel, welcome section, bottom CTA)Integration Points Validated
SignupPage.tsxline 20: SetspendingVerificationEmailin localStorageVerifyEmailPage.tsxline 23-24: Reads same localStorage keyVerifyEmailPage.tsxline 42: Clears localStorage after successful verificationFull round-trip flow is complete and consistent.
PR Details
issue-53-login-button-unverified-usersfrontend/src/pages/HomePage.tsx)Verdict: APPROVED | Next: Merge PR