diff --git a/.sureai/tasks_list.md b/.sureai/tasks_list.md index 40dda5e..c419edb 100644 --- a/.sureai/tasks_list.md +++ b/.sureai/tasks_list.md @@ -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 diff --git a/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/AuthResponse.java b/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/AuthResponse.java index 8ab72b8..a937251 100644 --- a/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/AuthResponse.java +++ b/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/AuthResponse.java @@ -11,4 +11,5 @@ import lombok.NoArgsConstructor; @AllArgsConstructor public class AuthResponse { private String token; -} + private String username; +} \ No newline at end of file diff --git a/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/RegisterRequest.java b/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/RegisterRequest.java index 16bd032..663a630 100644 --- a/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/RegisterRequest.java +++ b/develop_a_working_20251006_065420-develop_a_working_20251006_065420-b-b/authsec_springboot/backend/src/main/java/com/realnet/auth/dto/RegisterRequest.java @@ -13,4 +13,4 @@ public class RegisterRequest { private String username; private String email; private String password; -} +} \ No newline at end of file