/public/password-strength
使用系统默认密码策略检查密码强度,无需认证
Request Body
Schema: handler.CheckPublicPasswordStrengthRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
password |
string |
Yes | MyP@ssw0rd! |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | 密码强度 | gitee_com_linmes_authms_base_dto.DataResponse-dto_PasswordStrengthResponse |
Referenced Schemas
dto.PasswordStrengthCheckItem
密码强度检查中的单个检查项
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
key |
string |
No | min_length |
||
label |
string |
No | At least 8 characters |
||
passed |
boolean |
No | True |
dto.PasswordStrengthResponse
密码强度检查结果,包含分数和各项检查详情
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
checks |
array of |
No | |||
crack_seconds |
number |
No | 31557600 |
||
crack_time |
string |
No | centuries |
||
is_strong |
boolean |
No | False |
||
score |
integer |
No | 75 |
||
suggestions |
array of string |
No | ['Add another word or two'] |
||
warning |
string |
No | This is a common password |
gitee_com_linmes_authms_base_dto.DataResponse-dto_PasswordStrengthResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.PasswordStrengthResponse |
No | |||
message |
string |
No | |||
timestamp |
string |
No |