Recruitment_site/offer_backend/apps/accounts
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
..
migrations feat: 将注册手机号改为必填项 2026-03-25 15:46:44 +08:00
tests feat: add custom User model with role-based permissions 2026-03-24 17:11:40 +08:00
__init__.py feat: add custom User model with role-based permissions 2026-03-24 17:11:40 +08:00
apps.py feat: add custom User model with role-based permissions 2026-03-24 17:11:40 +08:00
models.py feat: 将注册手机号改为必填项 2026-03-25 15:46:44 +08:00
permissions.py feat: add custom User model with role-based permissions 2026-03-24 17:11:40 +08:00
serializers.py feat: 改为邮箱验证码注册,注册完成后自动登入 2026-03-25 15:51:03 +08:00
urls.py feat: 实现邮箱验证码登入功能 2026-03-25 15:30:23 +08:00
views.py feat: 登入页面支持求职者和管理员两种角色 2026-03-25 15:59:30 +08:00