后端改动: - 新增 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> |
||
|---|---|---|
| .. | ||
| .vscode | ||
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| vite.config.js | ||
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.