mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-28 02:38:00 +00:00
197180f73ac259518379e2c8f68170c474c9faa9
Root Cause: - Dashboard was checking profiles.email_verified column - But Supabase Auth uses user.email_confirmed_at field - This caused verified emails to show as "Unverified" Changes: 1. Dashboard now checks BOTH sources: - Primary: user.email_confirmed_at (Supabase Auth) - Fallback: profile.email_verified (profiles table) 2. Auto-sync profiles table: - When loading profile, sync email_verified from Auth - Updates profiles table if verification status differs 3. UI Improvements: - Show verification date in Account Status card - Display "Verified" badge next to email instead of button - Hide warning message if email is verified - Only show "Verify Email" button if truly unverified This ensures consistent verification status across: - Account Status card (top) - Profile tab (email field) - Security tab (warning message) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Languages
HTML
81.5%
TypeScript
14.9%
Rust
2%
PLpgSQL
0.8%
JavaScript
0.5%
Other
0.2%