Recruitment_site/offer_frontend
TianyangZhang 2edc9beef3 feat: 实现邮箱验证码登入功能
后端改动:
- 新增 VerificationCode 模型,支持验证码有效期和重试限制
- 新增 SendCodeView 生成并发送邮箱验证码
- 自定义 TokenObtainPairView 支持邮箱+验证码登入
- 添加 SendCodeSerializer 和 LoginSerializer

前端改动:
- 改写 LoginView.vue 为单页面邮箱+验证码登入流程
- 修改 auth API,新增 sendCode() 和修改 loginApi()
- 更新 auth store 的 login 方法支持邮箱和验证码

功能特性:
- 验证码有效期 10 分钟
- 同一邮箱 5 次错误尝试后锁定 10 分钟
- 支持重新发送验证码
- 完全替换原有用户名密码登入方式

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-25 15:30:23 +08:00
..
.vscode feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
public feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
src feat: 实现邮箱验证码登入功能 2026-03-25 15:30:23 +08:00
.gitignore feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
README.md feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
index.html feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
package-lock.json feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
package.json feat: initialize Vue3 frontend with router, pinia, element-plus 2026-03-25 08:37:09 +08:00
vite.config.js refactor: 调整岗位、应用等模块,适配三栏设计 2026-03-25 13:13:09 +08:00

README.md

Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Learn more about IDE Support for Vue in the Vue Docs Scaling up Guide.