Initial commit of io8 project

This commit is contained in:
user 2025-10-06 11:21:10 +00:00
parent d2d30f6619
commit d1cef9ed75
3 changed files with 18 additions and 17 deletions

View File

@ -8,24 +8,24 @@ Set up the basic project structure and environment.
- [x] Create `UserRepository` for database interactions.
### 1.2 Implement User Registration
- [ ] Create `RegisterRequest` DTO.
- [ ] Create `AuthResponse` DTO.
- [ ] Add registration method to `AuthController`.
- [ ] Implement password hashing in `UserService`.
- [ ] Save user to `UserRepository`.
- [x] Create `RegisterRequest` DTO.
- [x] Create `AuthResponse` DTO.
- [x] Add registration method to `AuthController`.
- [x] Implement password hashing in `UserService`.
- [x] Save user to `UserRepository`.
### 1.3 Implement User Login
- [ ] Create `LoginRequest` DTO.
- [ ] Add login method to `AuthController`.
- [ ] Validate user credentials in `UserService`.
- [ ] Generate JWT token upon successful login in `UserService`.
- [x] Create `LoginRequest` DTO.
- [x] Add login method to `AuthController`.
- [x] Validate user credentials in `UserService`.
- [x] Generate JWT token upon successful login in `UserService`.
### 1.4 Implement Password Reset Initiation
- [ ] Create `PasswordResetRequest` DTO.
- [ ] Add password reset initiation method to `AuthController`.
- [ ] Generate a unique password reset token in `UserService`.
- [ ] Store the reset token with an expiration time in the database.
- [ ] Send password reset email to the user (placeholder for now).
- [x] Create `PasswordResetRequest` DTO.
- [x] Add password reset initiation method to `AuthController`.
- [x] Generate a unique password reset token in `UserService`.
- [x] Store the reset token with an expiration time in the database.
- [x] Send password reset email to the user (placeholder for now).
### 1.5 Configure Security (JWT)
- [ ] Configure Spring Security for JWT authentication.
@ -116,7 +116,7 @@ Develop the core functionality for creating, reading, updating, and deleting not
- [ ] Update `schema.sql` or use JPA to generate/update the note table schema.
## Current Task Status
**Currently Working On:** Task 1.2 - Implement User Registration (Create RegisterRequest DTO)
Currently Working On: Task 1.2 - Implement User Registration (Save user to UserRepository)
**Completed Tasks:** Task 2 - Integrate Frontend with Backend Authentication [FRONTEND]
## Task Completion Guidelines

View File

@ -11,4 +11,5 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public class AuthResponse {
private String token;
}
private String username;
}

View File

@ -13,4 +13,4 @@ public class RegisterRequest {
private String username;
private String email;
private String password;
}
}