failedPasswordAttempts Condition

In your flow you can use the failedPasswordAttempts value to return the current number of failed password attempts, enabling you to configure custom handling for failed attempts.

While it is possible to enable temporary user lockout settings for your password authentication method, time delays may introduce new complexities to your flow. In this case, use the failedPasswordAttempts condition.

Below are some example use cases for this specific conditional statement.

Use Cases for failedPasswordAttempts

1. Error after several failed attempts

If you want to avoid the challenges of password resets in your Flow, you can treat a certain threshold of failed password attempts as an error.

treat as an error

2. Pairing with various password actions

In your flow, you can combine your failedPasswordAttempts condition with various password-related actions, such as the Send Password Reset action.

To add the action to your Descope Flow, click the blue + button in the top-left corner. Then, select Actions, and pick the Send Password Reset action.

send password reset action

You can connect the results of your condition to this action in your flow for custom handling.

Was this helpful?

On this page