mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 02:07:55 +00:00
d00b830e0af1d2d5499de7a8f465d3847bda8ab6
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
75.2%
TypeScript
21.3%
Rust
1.9%
PLpgSQL
0.7%
JavaScript
0.6%
Other
0.2%