A AuthMS API Wiki API Reference iam.tianv.com →

POST /auth/register/check-email

在用户注册前校验邮箱是否已被注册,防止重复注册与临时邮箱滥用。支持GET和POST两种请求方式。参考:OWASP ASVS V2.2。

身份认证 None application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
email query string No 邮箱地址(GET方式)

Request Body

Schema: dto.CheckEmailRequest

FieldTypeRequiredExampleConstraintsDescription
email string Yes user@example.com Email

Responses

StatusDescriptionSchema
200邮箱可用性检查结果dto.CheckEmailResponse
400请求参数无效gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.CheckEmailResponse

检查邮箱可用性结果

FieldTypeRequiredExampleConstraintsDescription
available boolean No True Is available
email string No user@example.com Email

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No