POST /public/password-strength

使用系统默认密码策略检查密码强度,无需认证

身份认证 None application/json

请求体

Schema: handler.CheckPublicPasswordStrengthRequest

字段类型必填示例约束描述
password string 是 MyP@ssw0rd!

响应

引用的 Schema

service-core/base/dto.DataResponse-service-identity/internal/handler/dto/PasswordStrengthResponse

字段类型必填示例约束描述
code integer 否
data service-identity/internal/handler/dto.PasswordStrengthResponse 否
message string 否
timestamp string 否

service-identity/internal/handler/dto.PasswordStrengthCheckItem

密码强度检查中的单个检查项

字段类型必填示例约束描述
key string 否 min_length
label string 否 At least 8 characters
passed boolean 否 True

service-identity/internal/handler/dto.PasswordStrengthResponse

密码强度检查结果,包含分数和各项检查详情

字段类型必填示例约束描述
checks array of

参见 service-identity/internal/handler/dto.PasswordStrengthCheckItem

否
crack_seconds number 否 31557600
crack_time string 否 centuries
is_strong boolean 否 False
score integer 否 75
suggestions array of

string

否 ['Add another word or two']
warning string 否 This is a common password