Skip to content

Implement Email-Based Login with Token Authentication and Active User Check #164

@OzgurSavascioglu

Description

@OzgurSavascioglu

🔍 Issue Description:

  • This issue is created to implement the /api/login/ endpoint that allows users to authenticate using their email and password. The endpoint also validates that the user account is active before issuing an authentication token.

📌 Subtasks:

  • Created LoginSerializer for handling email/password authentication
  • Created /api/login/ view using APIView
  • Integrated token generation using Django REST Framework's TokenAuthentication
  • Documented endpoint usage for frontend team
  • Manually tested login with valid, invalid, and inactive user scenarios

📌 Expected effort:

  • 3 hours

📌 Deadline:

  • 02-05-2025

📌 Reviewers:

📌 Reviewer Deadline:

  • 03-05-2025

⚡ Footer

✅ This issue follows the issue template rules to maintain consistency.
✅ The assignee(s) ensure this issue is clear, structured, and meets all must-have criteria.
✅ Open to feedback & improvements, because even the best code can get better!
💡 And remember: "It works on my machine" doesn’t mean it works for everyone, and "It’s not a bug, it’s a feature" only works if everyone agrees!

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions