Autional Autional
API Reference GitHub autional.com →

POST /auth/reset-password

Set a new password after successful verification via verification code, supporting both email and SMS verification methods. References: NIST SP 800-63B §5.1.1.2, OWASP ASVS V2.1.

Authentication None application/json

Request Body

Schema: dto.ResetPasswordRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes Verification code
identity string Yes Email or phone
new_password string Yes length: 8–32 New password

Responses

StatusDescriptionSchema
200Password reset successfuldto.ResetPasswordResponse
400Invalid request parameters or expired verification codegitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.ResetPasswordResponse

Reset password response

FieldTypeRequiredExampleConstraintsDescription
message string No Message

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No