fssa-batch3 / fssa-batch3/sec_a_naveenasri.nagarajan__corejava_project_2

User module | Login User Feature

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement user-module
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## User Login Process

### User Story
- As a user, I want to log in with my email and password.
- Correct credentials grant access to my account; incorrect ones display error messages.

### Task: Implement User Login
- [ ] Create Data Access Object (DAO) Layer for user login.
- [ ] Implement Service Layer for user login functionality.
- [ ] Write JUnit Test Cases to ensure the login process works correctly.
- [ ] Verify that all test cases are passing successfully.
- [ ] Add clear and concise comments in the code to explain any complex logic.

### DAO:
- [ ] login()

### Service:
- [ ] loginUser()

### Test:
- [ ] testLoginSuccess()
- [ ] testEmailNotExists()
- [ ] testLoginPasswordCheck()
- [ ] testLoginEmailCheck()

### Estimation
- [ ] 5 hrs

### Flow
``` mermaid
graph TD
A[[Start]] --> B([Validate User])
B --> |Valid| C[(Retrieve User from Database)]
B --> |Invalid| E{{Validation Exception}}
C --> |User Not Found| F{{ServiceException}}
C --> |User Found| D([Check Password Match])
D --> |Returns User| I([Login Successful])
E --> G([Login Failed])
F --> G
D --> |Password Mismatch| G
G --> H[[End]]
I --> H
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.