Skip to content

Task 6 feat: implement login module#12

Merged
dawiddykacz merged 1 commit into
mainfrom
added_login
Apr 20, 2026
Merged

Task 6 feat: implement login module#12
dawiddykacz merged 1 commit into
mainfrom
added_login

Conversation

@dawiddykacz
Copy link
Copy Markdown
Collaborator

This PR introduces a complete authentication flow, including user registration and login. It also addresses a logic error in password verification and ensures high code coverage through unit and integration tests.

Key Changes:

  • Security Fix: Corrected PasswordEncoderBasicService.matches() logic. Previously, it was double-encoding the raw password, causing authentication to always fail.

  • Auth Flow: * Implemented loginUser endpoint returning JWT.

  • Error Handling: Created dedicated exceptions for auth failures to improve API clarity.

@dawiddykacz dawiddykacz requested a review from GieniuG April 20, 2026 17:40
@dawiddykacz dawiddykacz merged commit 70ac712 into main Apr 20, 2026
2 checks passed
@dawiddykacz dawiddykacz deleted the added_login branch April 20, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants