On the password reset flow, when a users enters in...
# ask-a-descoper
a
On the password reset flow, when a users enters in a mismatch password I get the error message, then if a user updated a password over 64 I get that error message, but the mismatch password error is still visible even though the passwords match now.
āœ… 1
d
Hi, I'm Descope's AI assistant. I've put together an initial response below based on your question. Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits. For further assistance, you can: • Visit Support • Reach out via email at support@descope.com
āœ… 1
r
Hi @Anson Geisel Let me check
a
Thank you ... I found this ... Based on the password component documentation, when you have Password confirmation enabled on the
new password
input, the validation message displays when passwords don't match (1) . The key behavior to note: if the Policy previewer is turned on, the validation message will only display after the new password satisfies the policy. If the policy isn't satisfied, the policy validation message displays first . This means when a user enters a password over 64 characters (exceeding the maximum length of 5-64 characters (2) ) , the policy error takes precedence. However, the mismatch error may persist because the component hasn't re-validated the match state after the policy error appears. To configure a custom error message for password mismatches, you can add it on the confirm password field by turning on the toggle for Password confirmation (1) . This message will display when both password fields don't match . For error handling in your flow, you can use Automatic error handling to redirect users back to the screen with a custom error message, or use Custom handling to control the flow behavior based on specific errors
šŸ™Œ 1
@Rahul Rijhwani is there any video like on youtube that gives a walk thru on how to customize error mesages?
r
Let me check @Anson Geisel
a
Thank you I appreciate it
r
I checked and it doesn't look like we have a dedicated YouTube video specifically for customizing error messages just yet. That said, the best resource right now is the doc here: https://docs.descope.com/handling-flow-errors/customizing-flow-errors — it covers both Automatic and Custom error handling in the flow builder. You can also browse our YouTube channel at https://www.youtube.com/@descope for any newer tutorials. If you'd find a video walkthrough helpful, I can flag that as feedback for our content team!
a
Thank you!