Skip to main content

Change user password

POST 

/company/users/changePass

Allows the authenticated user to change their own password.

Requirements:

  • User must be authenticated (valid JWT)
  • The new password must meet security requirements:
    • Minimum 8 characters
    • At least 1 uppercase letter
    • At least 1 number
    • Cannot be the same as the last 5 passwords

Flow:

  1. User sends current password and new password
  2. System verifies that the current password is correct
  3. If valid, updates to the new password

Request Example:

{
currentPassword: MiPassActual123,
newPassword: NuevaPassSegura456
}

Request

Responses

Password successfully changed