POST /auth/register/check-email
在用户注册前校验邮箱是否已被注册,防止重复注册与临时邮箱滥用。支持GET和POST两种请求方式。参考:OWASP ASVS V2.2。
身份认证 None application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
email |
query |
string |
No |
|
|
|
邮箱地址(GET方式) |
Request Body
Schema: dto.CheckEmailRequest
| Field | Type | Required | Example | Constraints | Description |
email |
string |
Yes |
user@example.com |
|
Email |
Referenced Schemas
dto.CheckEmailResponse
检查邮箱可用性结果
| Field | Type | Required | Example | Constraints | Description |
available |
boolean |
No |
True |
|
Is available |
email |
string |
No |
user@example.com |
|
Email |
gitee_com_linmes_authms_base_dto.SimpleResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|