The auth layout was redirecting logged-in users to their dashboard even when they still needed to set their password. This caused a redirect loop: auth layout redirects to /jury, middleware redirects back to /set-password, repeat until crash. Now the auth layout checks mustSetPassword before redirecting, allowing users to complete the password setup flow. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB