后端改动: - RegisterSerializer 改为接收用户名+邮箱+手机号+验证码 - 验证邮箱是否已存在、用户名是否已存在 - 验证验证码有效性和正确性 - RegisterView 返回 JWT token,实现自动登入 前端改动: - RegisterView.vue 改为邮箱验证码注册流程 - 保留用户名、邮箱、手机号字段 - 获取验证码后输入验证码完成注册 - 注册成功后自动保存 token 并跳转到首页 流程:用户名+邮箱+手机号 → 获取验证码 → 输入验证码 → 注册完成并自动登入 → 跳转首页 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.