Recruitment_site/offer_backend/apps
TianyangZhang 8a5ed86421 feat: 改为密码注册和多种密码登入方式,新增密码重置功能
后端改动:
- RegisterSerializer: 改为邮箱+用户名+手机号+密码注册
- CustomTokenObtainPairView: 支持三种登入方式
  * 邮箱验证码登入(验证码有效10分钟,失败5次锁定)
  * 邮箱+密码登入
  * 用户名+密码登入
- 新增 PasswordLoginSerializer: 支持邮箱或用户名登入
- 新增 ResetPasswordSerializer: 请求密码重置
- 新增 ConfirmResetPasswordSerializer: 确认密码重置
- 新增 RequestResetPasswordView: 发送密码重置验证码
- 新增 ConfirmResetPasswordView: 重置密码
- 更新 URLs: 添加 /reset-password/ 和 /confirm-reset-password/

功能特性:
- 注册时需设置密码
- 登入可用邮箱或用户名 + 密码(邮箱和用户名对应同一密码)
- 保留邮箱验证码快速登入
- 忘记密码可通过邮箱验证码重置

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-25 16:14:57 +08:00
..
accounts feat: 改为密码注册和多种密码登入方式,新增密码重置功能 2026-03-25 16:14:57 +08:00
applications refactor: 调整岗位、应用等模块,适配三栏设计 2026-03-25 13:13:09 +08:00
jobs refactor: 调整岗位、应用等模块,适配三栏设计 2026-03-25 13:13:09 +08:00
organizations feat(backend): 组织序列化器添加在招岗位数统计 2026-03-25 13:12:43 +08:00
resumes feat: add Resume model with JSONB fields and file upload 2026-03-24 17:43:24 +08:00
__init__.py feat: add custom User model with role-based permissions 2026-03-24 17:11:40 +08:00