feat(auth): implement secure authentication flow with RSA encryption

- Add jsencrypt and js-base64 dependencies for RSA encryption
- Create AuthGuard component for route protection
- Implement encryption utility for password security
- Refactor login page with tabbed interface and form validation
- Add login hooks for authentication state management
- Update user service to handle encrypted passwords
This commit is contained in:
2025-10-10 18:25:20 +08:00
parent a1282de74f
commit d6ff547f20
10 changed files with 697 additions and 119 deletions

View File

@@ -19,6 +19,8 @@
"dayjs": "^1.11.18",
"i18next": "^25.5.3",
"i18next-browser-languagedetector": "^8.2.0",
"js-base64": "^3.7.8",
"jsencrypt": "^3.5.4",
"lodash": "^4.17.21",
"react": "^18.3.1",
"react-dom": "^18.3.1",