Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重做登录注册组件 #142

Draft
wants to merge 12 commits into
base: dev
Choose a base branch
from
Draft

Conversation

putianyi889
Copy link
Contributor

@putianyi889 putianyi889 commented Oct 14, 2024

Bug还没修完,本地化也没有完善,先放个草稿

代码结构改动

  • 登录、注册、找回密码的对话框各自独立成组件
  • 邮箱表单项独立成组件
  • (图形验证码+邮箱验证码)的组合独立成组件
  • (密码+确认密码)的组合独立成组件
  • 添加三个依赖,两个用于字符串验证,一个用于倒计时
  • store里直接把store创建好而不是仅输出useStore的函数。这样就可以在ts文件中使用了
  • 通知功能从原来的utils里移动到components

功能性改动

  • 后端的用户名长度限制改成30(前端目前还是20没改)
  • 需要查重的项目在前端输入结束后立刻通过check_collision查重
  • Login组件的所有表单都配置了完备的验证功能,引导用户无障碍使用
  • 前端发送邮箱验证码添加60秒冷却
  • EMAIL_SKIP设置为True时,原本是跳过所有相关检查,现在为了调试,仅跳过发送邮件的过程,直接在response里放上验证码

@putianyi889 putianyi889 marked this pull request as ready for review October 15, 2024 15:01
@putianyi889 putianyi889 marked this pull request as draft October 15, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant