fix: remove [Authorize] from Dashboard, add internal auth check
Root cause: [Authorize] attribute was blocking /dashboard access before Blazor auth state could be established, causing redirect to /not-found. Solution: - Remove [Authorize] from Dashboard.razor - Add authentication check in OnInitializedAsync - If not authenticated, redirect to login internally - Reduced wait time from 6s to 3s in login.html This allows: 1. /dashboard to load immediately 2. Blazor auth state to initialize 3. Dashboard to verify user is authenticated 4. Redirect to login if not authenticated Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 162 KiB |
Reference in New Issue
Block a user