Recruitment_site/offer_backend
TianyangZhang 12697c5750 feat: 登入页面支持求职者和管理员两种角色
前端改动:
- LoginView.vue 添加角色选择(求职者/管理员)
- 求职者使用邮箱验证码登入
- 管理员使用用户名密码登入
- 两种方式在同一页面,通过角色选项卡切换

后端改动:
- CustomTokenObtainPairView 改为支持两种登入方式
- 若提供 email+code 则使用邮箱验证码登入
- 若提供 username+password 则使用用户名密码登入

设计:
- 求职者可自助注册和邮箱验证码登入
- 管理员由 superadmin 创建,使用用户名密码登入
- 两种登入都返回同样的 JWT token

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-25 15:59:30 +08:00
..
apps feat: 登入页面支持求职者和管理员两种角色 2026-03-25 15:59:30 +08:00
config feat: 实现邮箱验证码登入功能 2026-03-25 15:30:23 +08:00
.gitignore feat: initialize Django backend project structure 2026-03-24 17:01:28 +08:00
conftest.py chore: add pytest configuration for Django tests 2026-03-24 17:06:18 +08:00
manage.py fix: set default DJANGO_SETTINGS_MODULE to development 2026-03-24 17:03:11 +08:00
pytest.ini chore: add pytest configuration for Django tests 2026-03-24 17:06:18 +08:00
requirements.txt chore: add pytest configuration for Django tests 2026-03-24 17:06:18 +08:00