Skip to content

The Login/Registration Controller (The Entry Point) #15

@Stelle83

Description

@Stelle83

As a system user,
I want to create an account and have the system recognize me so that my actions (comments/tasks) are linked to my profile.

Tasks:

  • Create CreateUserRequest DTO for registration (includes password field???)..

  • Implement AuthController with /register and /login endpoints. (test with Insomnia)

  • Update UserService to handle password hashing (BCrypt).

  • Create AuthenticationService with getCurrentUser() to bridge Spring Security and our Database.

-''-'-'-'-'
POST /auth/register: Takes a UserDTO, hashes the password, and saves it.
POST /auth/login: Verifies the email and password (using BCryptPasswordEncoder (????)).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions