Skip to content

DouTok v0.1.0目前已知的一些bug或待弥补之处 #51

@TremblingV5

Description

@TremblingV5
  • 用户注册相关逻辑中,在proto中定义的参数校验要求同时传手机号+邮箱,否则会报错导致注册失败。在产品逻辑上,手机号和邮箱只需要提供一个是最为常见的逻辑,所以注册、登陆等相关逻辑中,应该允许只传手机号或邮箱,然后再对手机号或邮箱进行格式校验
  • 在user表中,手机号和邮箱应一同设置唯一索引,或是不设置唯一索引,由代码逻辑进行判断;否则无法适配只使用手机号或是邮箱注册的逻辑
  • 用户注册接口在返回值中,新增token字段,降低间断操作数和页面刷新次数

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions