Docs › API Reference › Identity Service › PUT /auth/me/password
PUT /auth/me/password
Set new password after verifying old password; upon successful change, automatically revoke all sessions to ensure account security. Reference: NIST SP 800-63B §5.1.1.2, OWASP ASVS V2.1.
Authentication `bearerAuth` application/json
Request Body
Schema: dto.HTTPChangePasswordRequest
Field Type Required Example Constraints Description
new_password
string
Yes
length: 8–?
New password
old_password
string
No
Old password (optional for admin reset)
password_transmission
string
No
plain|hash|symmetric|asymmetric
Referenced Schemas
dto.ChangePasswordResponse
Field Type Required Example Constraints Description
code
integer
No
message
string
No
gitee_com_linmes_authms_base_dto.SimpleResponse
Field Type Required Example Constraints Description
code
integer
No
message
string
No
timestamp
string
No