Commit graph

18 commits

Author SHA1 Message Date
JakkrapartXD
af14610442 feat: Add token-based authorization to category deletion and enhance user registration with error handling and audit logging. 2026-02-13 14:54:45 +07:00
JakkrapartXD
c1254520b4 refactor: Optimize Docker build process, switch to @node-rs/bcrypt, and streamline compose.yaml by removing external services.
All checks were successful
Build and Deploy Backend / Build Backend Docker Image (push) Successful in 45s
Build and Deploy Backend / Deploy E-learning Backend to Dev Server (push) Successful in 12s
Build and Deploy Backend / Notify Deployment Status (push) Successful in 1s
2026-02-10 15:27:13 +07:00
JakkrapartXD
108f1b73f2 feat: integrate audit logging across authentication, course management, and user operations
Add comprehensive audit trail tracking by integrating auditService throughout the application. Track user authentication (LOGIN, REGISTER), course lifecycle (CREATE, APPROVE_COURSE, REJECT_COURSE, ENROLL), content management (CREATE/DELETE Chapter/Lesson), file operations (UPLOAD_FILE, DELETE_FILE for videos and attachments), password management (CHANGE_PASSWORD, RESET_PASSWORD), user role updates (UPDATE
2026-02-05 17:35:37 +07:00
JakkrapartXD
48e8f56e22 feat: update instructor search to exclude self and existing course instructors, add email_verified_at to user responses
Update searchInstructors endpoint to accept courseId parameter and filter out the requesting instructor and instructors already assigned to the course. Add email_verified_at field to UserResponse type and include it in auth and user service responses.
2026-02-03 10:38:59 +07:00
JakkrapartXD
d7f824f353 feat: standardize login response format with code, message, and data wrapper
Update login endpoint to return consistent API response structure with code, message, and data fields. Wrap token, refreshToken, and user data inside a data object to match the standardized response format used across other endpoints.
2026-01-30 17:54:43 +07:00
JakkrapartXD
bf5d939910 feat: add role-based frontend URL routing for password reset and email verification
Add separate frontend URL environment variables for student and instructor portals. Update password reset and email verification services to route users to the appropriate frontend based on their role (INSTRUCTOR vs STUDENT).
2026-01-30 17:29:08 +07:00
JakkrapartXD
f4a12c686b feat: Implement instructor search and improve instructor management with email/username lookup and avatar presigned URLs. 2026-01-29 15:52:10 +07:00
JakkrapartXD
a38389cc9f feat: Add instructor registration endpoint and rename student registration to learner registration. 2026-01-19 07:30:28 +00:00
JakkrapartXD
bb80b8a419 add is_deactivated 2026-01-15 10:17:15 +07:00
JakkrapartXD
3ab76e7a43 remove phone from user 2026-01-14 17:51:21 +07:00
JakkrapartXD
ebdf63421a add phone register api 2026-01-14 17:00:23 +07:00
JakkrapartXD
a6cddc6318 move chage password to user con 2026-01-14 14:06:09 +07:00
JakkrapartXD
d8a9909eb9 chage api use token 2026-01-14 13:42:54 +07:00
JakkrapartXD
d8d3dff2e7 get me api 2026-01-13 17:55:00 +07:00
JakkrapartXD
f026c14f0c auth api 2026-01-13 06:49:37 +00:00
JakkrapartXD
646a10f45c update phone schema 2026-01-09 10:59:26 +00:00
JakkrapartXD
1a7473362b api login 2026-01-09 10:14:20 +00:00
JakkrapartXD
9fde77468a migration to typescript 2026-01-09 06:28:15 +00:00