Repository navigation
Commit c7392ea
fix: Add 'waitlist' status to sign-in redirect logic
CRITICAL FIX: Resolves infinite redirect loop on sign-in for waitlist users.
Root Cause:
- signinUser() function was missing "waitlist" in status check (line 289-295)
- Users with "waitlist" status would get redirectTo = "/home" (default)
- Middleware would then redirect them to "/applicant/waiting"
- SignInForm would redirect to "/home" again
- INFINITE REDIRECT LOOP
The Fix:
- Added "waitlist" to applicant status conditions in signinUser()
- Now correctly redirects waitlist users to "/applicant/waiting"
- Matches middleware logic for consistent redirect behavior
This completes the waitlist status handling across:
1. ✅ Middleware (fixed in previous commit)
2. ✅ Sign-in action (fixed in this commit)
3. ✅ TypeScript types (fixed in previous commit)
Impact:
- Fixes ERR_TOO_MANY_REDIRECTS for users signing in with waitlist status
- Ensures smooth sign-in experience for all applicant statuses
- No more redirect loops between /home and /applicant/waiting
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a8fcf84 commit c7392ea
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
0 commit comments