feat: add authentication modal component and user authentication logic

- Implemented AuthModal.vue for user login and registration with form handling.
- Created useAuth composable for managing user state and authentication requests.
- Added admin route middleware to protect admin routes.
- Developed admin login page with authentication checks.
- Implemented API endpoints for user management (login, logout, fetch user, register).
- Created database migrations for users table and updated movies table.
- Added utility functions for password hashing and JWT token management.
This commit is contained in:
ngthanhvu
2026-07-22 04:26:58 -04:00
parent ad8d577493
commit d982449464
29 changed files with 1965 additions and 178 deletions
@@ -22,6 +22,20 @@
"when": 1784694350192,
"tag": "0002_small_black_panther",
"breakpoints": true
},
{
"idx": 3,
"version": "5",
"when": 1784704595989,
"tag": "0003_slow_masked_marvel",
"breakpoints": true
},
{
"idx": 4,
"version": "5",
"when": 1784707891329,
"tag": "0004_opposite_sasquatch",
"breakpoints": true
}
]
}