Docs › API Reference › Identity Service › POST /auth/reset-password
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
Field Type Required Example Constraints Description
code
string
Yes
Verification code
identity
string
Yes
Email or phone
new_password
string
Yes
length: 8–32
New password
Referenced Schemas
dto.ResetPasswordResponse
Reset password response
Field Type Required Example Constraints Description
message
string
No
Message
gitee_com_linmes_authms_base_dto.SimpleResponse
Field Type Required Example Constraints Description
code
integer
No
message
string
No
timestamp
string
No