Skip to content

User Authentication and Profile Management #3

@uxabix

Description

@uxabix

We need to implement basic user authentication functionality.

Requirements

  • Registration page & endpoint
  • Fields:
    • Username
    • Email
    • Password
  • Login page & endpoint
  • Profile page
  • Display basic user information
  • Logout functionality

Technical details

  • Use Django’s built-in user model.
  • Create API endpoints (DRF) for registration, login, logout, and profile retrieval.
  • Create corresponding Django template pages for registration, login, profile.
  • Ensure CSRF protection and session management work correctly for template-based views.
  • JWT or session-based auth for API (to be discussed).

Testing

  • Write unit tests for:
  • Registration (valid / invalid data)
  • Login (valid / invalid credentials)
  • Accessing profile (authenticated / unauthenticated)
  • Logout

Definition of Done

  • User can register, log in, view profile, and log out via both API and UI.
  • All new code is covered by tests.
  • Documentation (docstrings) is provided.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions