---
title: CIAM-Passwordless-Protect-Change-Password-Subflow
description: The CIAM-Passwordless-Protect-Change-Password-Subflow lets users change their passwords.
component: pingone-solutions
page_id: pingone-solutions:pingone-customers-passwordless:flow_reference/ciam_passwordless_ciam_change_password
canonical_url: https://docs.pingidentity.com/pingone-solutions/pingone-customers-passwordless/flow_reference/ciam_passwordless_ciam_change_password.html
revdate: July 22, 2024
section_ids:
  purpose: Purpose
  structure: Structure
  input-schema: Input schema
  output-schema: Output schema
  variables: Variables
---

# CIAM-Passwordless-Protect-Change-Password-Subflow

The CIAM-Passwordless-Protect-Change-Password-Subflow lets users change their passwords.

## Purpose

The **CIAM-Passwordless-Protect-Change-Password-Subflow** displays a password reset form, letting users enter their current password and enter and verify a new password. If the new passwords match, the user's password is updated in PingOne.

## Structure

Diagram of the structure, as described below.

This flow is divided into sections using teleport nodes:

* **User Enter Password**

  Presents the user with an HTML password reset form. The flow then progresses to the **Update Password** section.

* **Update Password**

  Compares the new password and confirmed password. If they match, a PingOne node updates the user's password. The flow then either displays a success message for the user or progresses to the **Return Success** section, depending on the value of the `showSuccessMessage` input.

* **Return Error**

  Sends a JSON error message.

* **Return Success**

  Sends a JSON success message.

## Input schema

This flow has the following inputs.

| Input Name           | Required? | Description                                                                                                        |
| -------------------- | --------- | ------------------------------------------------------------------------------------------------------------------ |
| `userID`             | Yes       | The user ID of the current user.                                                                                   |
| `showSuccessMessage` | No        | A boolean that indicates whether a success message should be displayed after the user's password has been changed. |
| `ciam_companyLogo`   | No        | The company logo.Used only when the main flow was launched using the widget.                                       |

## Output schema

This flow has the following outputs.

| Output Name          | Description                                      |
| -------------------- | ------------------------------------------------ |
| `ciam_subflowResult` | The result status of the flow.                   |
| `ciam_errorMessage`  | The error message to display in the parent flow. |

## Variables

This flow uses the following variables.

| Variable Name      | Description                                  |
| ------------------ | -------------------------------------------- |
| `ciam_logoStyle`   | The HTML style to use for your company logo. |
| `ciam_logoUrl`     | The URL for your company logo.               |
| `ciam_companyName` | Displays the name of your company.           |
