Gift Card Redemption Authentication

Gift Card Redemption - Change Password - Subflow

The Gift Card Redemption - Change Password - Subflow lets users change their passwords.

Purpose

The Gift Card Redemption - 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

This flow is divided into sections using teleport nodes:

User Enter Password

Presents the user with an HTML template that that either displays a password reset form or displays a success message depending on the show success message value. 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 returns to the beginning of the User Enter Password section or progresses to the Return Success section, depending on the value of the showSuccessMessage input.

Return Success

Sends a JSON success message.

Return Error

Uses a function node to enrich the error details, then sends an error JSON response indicating that the flow completed unsuccessfully.

Input schema

This flow has the following inputs.

Input name Required Description

p1UserId

Yes

The current user’s PingOne user ID.

companyLogo

No

The company logo.

Used only when the main flow was launched using a redirect.

showSuccessMessage

No

Indicates whether a success message should be displayed after the user accepts the agreement.

Output schema

This flow has the following outputs.

Output Name Description

subflowResult

The result status of the flow.

errorMessage

The error message to pass to the parent flow.

errorDetails

The details of the error that occurred.

Variables and parameters

This flow uses the following variable or parameter values.

Parameter name Description

p1UserId

The current user’s PingOne user ID.

showSuccessMessage

Indicates whether a success message should be displayed after the user accepts the agreement.