I’m trying to customize my login experience to introduce a step for user to confirm a sorta-OTP. I give them 3 attempts to enter it correct. How can I fail the login process and stop it from continuation to the app?
My current end node configured for a happy path to “continue”, but I’m struggling to setup an “unhappy” path. I see that ending node can have an additional flow, but then again, how in that flow I can stop login journey for a user?
Thank you for reaching out to us!
At this moment there is no option of counting or setting a limit to the number of incorrect OTP attempts within Forms. The standard limit is 10 attempts, after which the user is forced to re-send the OTP and generate a new one. You can find more information on our Knowledge Article.
If you would want, you could you create a Feedback request asking to implement the possibility of a count or limit of the incorrect OTP attempts.
The feedback request includes a voting system where feedback requests with higher votes have higher implementation priority.
I wanted to clarify. Let’s assume it’s not OTP. It’s a process of asking a user to provide a piece of information.
I want to limit users to only do that 3 times, for that I build 3 forms (for each attempt) and chained them together. If one of the validations worked I jump to the end node (it’s success).
I wanted to know how can I stop my custom Form/Flow process with “failure”, after I exhausted all my steps in the process and user was not able to provide right info.
Please excuse my absence, after doing some testing on this matter, there isn’t a built-in way of stopping the Form or setting a counter within it, however one workaround could be to use api.access.deny( ) within the Action based on specific criteria. I’m still using the OTP example you mentioned, but this should be applicable in other cases as well :
create 3 steps where OTP is requested;
if OTP is correctly provided, add some metadata to the user and allow them access;
if they answer incorrectly 3 times, remove the metadata and deny them access based on the existence of that metadata.
This would probably need for that metadata to be added to all target users beforehand, but using metadata should be a way to get this working as intended.
We would love to have your input on this, if a way to stop Forms is something that you want to see. You can submit a feature request and if more people from the Community find this useful, they can vote, which increases the changes of it becoming a feature.