When init() restores session from cookie and user's current URL is /login, the guard was calling next() without checking isAuthenticated — leaving the user on the login page despite having a valid session. Now redirects to dashboard if already authenticated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| middleware | ||
| routers | ||
| services | ||
| static | ||
| tests | ||
| __init__.py | ||
| auth.py | ||
| config.py | ||
| database.py | ||
| main.py | ||
| models.py | ||
| schemas.py | ||
| sso.py | ||