In my app, I have set an mobile verification screen.
So, when a user signs in/signs up he will be sent an OTP on his phone and he will be linked onto a Verification Screen wherein he needs to enter his OTP and if it’s correct he’ll be redirected to home screen.
The problem is this scenario, if the user logs in/signs up and is linked to Verification Screen and now he kiils the app and reopens the app, he’ll be redirected to the home screen and he can access the app. This is happening mainly because the user is already logged in when he signs in/ logs in.
So, just wondering how can I check if a user has already entered the OTP, so that only then I can sign him in ?
One hack I am thinking of is setting a True/False field. Whenever a user enters OTP this field will be set to True, and whenever he logs out it will be set to False. The only disadvantage is that the user won’t be able to login at multiple places then. So looking for a work around
I would not recommend having the action on the home screen as it can sometimes take Adalo a few seconds to actually log in and may not always grab the true/false parameter right away and send the user to the wrong location.
Follow my tutorial video. I use a countdown timer with actions and conditions. It’s the safer route.
One more thing that came to my mind is using Lotti ?
Like having a 3 second Lotti animation (loop disabled), and once the animation is complete setting conditions to link it on desired screen.
What you feel of this method ?