Skip to content

[Email]发送邮箱验证码并验证 #1

Description

@hanpika

客户端发送请求(请求格式详见doc/protocol.md)
服务器随机生成验证码后发送到客户邮箱
同时返回给客户端一个零时id
点登录或注册时客户端连着验证码一起发回,后端进行验证
实现效果:
单独的py文件
包含两个可调用函数
1.发送验证码,传值:email
返回:零时id+验证码(必须为四位)
2.验证验证码,传值:零时id+验证码+一堆验证码数[1:4514,2:5418]
在一堆验证码数组中找到零时id所对应的验证码并做校验
正确返回True,否则返回False

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions