Autional Autional
API Reference GitHub autional.com →

POST /public/password-strength

Check password strength using the system default password policy. No authentication required.

Authentication None application/json

Request Body

Schema: handler.CheckPublicPasswordStrengthRequest

FieldTypeRequiredExampleConstraintsDescription
password string Yes MyP@ssw0rd!

Responses

StatusDescriptionSchema
200Password strengthgitee_com_linmes_authms_base_dto.DataResponse-dto_PasswordStrengthResponse

Referenced Schemas

dto.PasswordStrengthCheckItem

Individual check item in password strength check

FieldTypeRequiredExampleConstraintsDescription
key string No min_length
label string No At least 8 characters
passed boolean No True

dto.PasswordStrengthResponse

Password strength check result, including score and details of each check

FieldTypeRequiredExampleConstraintsDescription
checks array of

See dto.PasswordStrengthCheckItem

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

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.PasswordStrengthResponse No
message string No
timestamp string No