Skip to content

Feat/wire login logout profile#23

Merged
AAdewunmi merged 4 commits into
mainfrom
feat/wire-login-logout-profile
May 6, 2026
Merged

Feat/wire login logout profile#23
AAdewunmi merged 4 commits into
mainfrom
feat/wire-login-logout-profile

Conversation

@AAdewunmi

Copy link
Copy Markdown
Owner

Summary

Wires the login, logout, and profile flow so authentication routes consistently lead users into the dashboard as the post-login product surface.

Changes

  • Routed login through templates/users/login.html.
  • Kept signup routed through the custom signup view and templates/users/signup.html.
  • Removed obsolete templates/registration/login.html and templates/registration/signup.html.
  • Redirect authenticated users away from login and signup to the dashboard.
  • Added authenticated logout control to the shared navigation.
  • Kept profile rendering aligned with the current design system and role relationship.

Behavior

  • Anonymous users can log in or create an account from the public navigation.
  • Successful login redirects to dashboard:index.
  • Successful signup redirects to dashboard:index.
  • Authenticated users visiting login/signup are redirected to the dashboard.
  • Authenticated users can open profile or dashboard from the nav.
  • Logout uses POST and redirects to the public home page.
  • Protected pages redirect anonymous users to login with next.

Why

The dashboard is becoming the authenticated product surface, so authentication entry points need predictable routing, redirects, and navigation before deeper product features are added.

Validation

  • docker compose exec -T web python manage.py check --settings=config.settings.local
  • docker compose exec -T web python -m black . --check
  • docker compose exec -T web python -m ruff check .
  • docker compose exec -T web pytest apps/users/tests/test_auth_views.py tests/test_views.py -q

Result

All checks passed. Auth/routing tests: 18 passed.

Notes

Obsolete Django default registration templates were removed to avoid future confusion now that auth templates live under templates/users/.

@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AAdewunmi AAdewunmi merged commit d28ae65 into main May 6, 2026
2 checks passed
@AAdewunmi AAdewunmi deleted the feat/wire-login-logout-profile branch May 6, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

Wire login logout profile

1 participant