# SMS Verification Help

**URL:** <https://forum.adalo.com/t/sms-verification-help/21980>\
**Category:** Get Help\
**Created:** [January 12, 2022, 9:39pm UTC](https://forum.adalo.com/t/sms-verification-help/21980 "2022-01-12T21:39:13Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 12, 2022, 9:39pm UTC](https://forum.adalo.com/t/sms-verification-help/21980/1 "2022-01-12T21:39:13Z")

</div>

> **[Send a verification SMS to new sign ups](https://help.adalo.com/integrations/integromat/send-a-verification-sms-to-new-sign-ups)**

This guide is very very incomplete. I don’t know where to go from here afterwards to actually have my adalo app initiate the sending of the text. If anyone can link me a full tutorial step by step.

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [January 13, 2022, 12:32am UTC](https://forum.adalo.com/t/sms-verification-help/21980/2 "2022-01-13T00:32:17Z")

</div>

Hi Trble,

Welcome to the Community! 🥳

What part are you stuck on?

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 13, 2022, 1:04am UTC](https://forum.adalo.com/t/sms-verification-help/21980/3 "2022-01-13T01:04:27Z")

</div>

It seems the code came in 15 minutes later because the lowest interval is 15 minutes. Surely there must be a a way for the OTP to be sent immediately? I can’t imaging users waiting 15 minutes for an OTP code.

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [January 13, 2022, 1:16am UTC](https://forum.adalo.com/t/sms-verification-help/21980/4 "2022-01-13T01:16:46Z")

</div>

I think this is because you are on the lowest tier for integromat.

According to integromat, if you pay $29/month the interval is 1 minute:

 ![Screenshot 2022-01-12 5.15.27 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/99344f0155d6c9c4b28f8724c63bdbbb7c82bf7e.png)

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 13, 2022, 1:20am UTC](https://forum.adalo.com/t/sms-verification-help/21980/5 "2022-01-13T01:20:49Z")

</div>

Oh thank you. The other question I had was how to get the OTP code randomly generated. My welcome page lets the user input their number and then creates an account or logs them in. However I want to use an OTP code instead of a password. I have installed the randomizer plugin. But it seems the randomizer produces the number when the welcome page loads. And thus it cannot update the password/otp database entry field for unlogged in users.

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 13, 2022, 1:26am UTC](https://forum.adalo.com/t/sms-verification-help/21980/6 "2022-01-13T01:26:11Z")

</div>

I have a text input for user to input their phone number.  
I have a signup button that shows if the number does not exist in database  
I have a login button that shows if the number does exist in the database.

I am stuck on how to generate an random OTP for these two buttons and update the number’s password/otp field.

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [January 13, 2022, 2:13am UTC](https://forum.adalo.com/t/sms-verification-help/21980/7 "2022-01-13T02:13:48Z")

</div>

Instead, you can use the built in RAND function for when the user clicks on ‘sign up’.

1. First, you would create an action that updates the Logged In User password field.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/d/d3717c94633e6c058f129d006279b456e4c9c21a.png)

1. Click on the magic text icon then \> “New Formula”

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/e/eff68df93f1af1cb36b15438834353708682f52d.png)

1. Then, click on the magic text icon \> functions \> RAND

 ![Screenshot 2022-01-12 6.10.47 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/6d54ff5a439af27cbc1b594febf0fd93e75b680e.png)

1. Then, you specify a number for the RAND function:

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/65dabc1ca85289155aadd950cd1776102014a7b9.png)

> **[How to Create a Custom Math Formula](https://help.adalo.com/component-basics/inserting-dynamic-text/how-to-create-a-custom-math-formula)**
>
> Create your own custom math formulas inside of Adalo

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 13, 2022, 3:01am UTC](https://forum.adalo.com/t/sms-verification-help/21980/8 "2022-01-13T03:01:02Z")

</div>

The password field cannot be used in a lot of things. How can I create a random number, but store that same number as both password and another field called verification code?

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 13, 2022, 3:07am UTC](https://forum.adalo.com/t/sms-verification-help/21980/9 "2022-01-13T03:07:25Z")

</div>

I still have a problem when the user wants to login using their phone number. The password field needs to be filled out on this action. But I need the OTP password to be generated and then ask the user for the OTP first.

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 17, 2022, 12:41am UTC](https://forum.adalo.com/t/sms-verification-help/21980/10 "2022-01-17T00:41:20Z")

</div>

I have a important question I have not been able to get an answer on the forums. It might also be a bug in adalo which you might need to look at too.

I created an SMS/OTP signup/login by giving all users the same password. Now all user have the same password but after the welcome screen it asks for OTP before going to the homescreen. I could not find another way to do this I hope it is not a security issue.

However if you close the app preview and reload the app preview without typing in an OTP. You are magically at the Homescreen!

Also is there a way to show error message on button clicks if the conditions are not met. Otherwise the user has no idea what he did incorrectly.

 ![F2A1F37A8C5345E880520220CE6300FA.png](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/ffeee1ddf87037f94dd158f88fd9ced464f4be34.png)

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [January 17, 2022, 6:38am UTC](https://forum.adalo.com/t/sms-verification-help/21980/11 "2022-01-17T06:38:17Z")

</div>

Yeah, this is because you need to check if the user has typed in an OTP by adding a true/false property to the user’s collection named “Verified?”. Then you would add an action to the home screen if they are NOT verified link them to the OTP verification screen.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/1/13d4fdf2ff2c9a90b2344dc4b3bd2b863cf22572.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/5/5bf1a999ef71e5ab5aa253e7f0434a3d5cfe007e.png)

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 17, 2022, 10:43am UTC](https://forum.adalo.com/t/sms-verification-help/21980/12 "2022-01-17T10:43:35Z")

</div>

But won’t they for a few seconds see information they shouldn’t see? Why can they even get to the home screen by closing and reopening the app. Seems like a critical bug that they can bypass the otp screen.

The real problem is I’m trying to send a code and have the code be their login password and otp. But this doesn’t seem possible because you need the user to login before you can store a code in the database.

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [January 17, 2022, 11:23pm UTC](https://forum.adalo.com/t/sms-verification-help/21980/13 "2022-01-17T23:23:35Z")

</div>

Ok, then you can do the same thing but on a plain white screen.

If they are verified, send them to the home screen. If they are not verified, send them to the OTP screen

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 17, 2022, 11:56pm UTC](https://forum.adalo.com/t/sms-verification-help/21980/14 "2022-01-17T23:56:12Z")

</div>

I think you might misunderstand. There seems to be a bug in the system that allows users the skip to the home page. I can’t make the home page a plain white screen. You can replicate this yourself. If you just choose the app preview and click preview again, you’ll always be on the home screen. Even when you shouldn’t be.

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [January 17, 2022, 11:57pm UTC](https://forum.adalo.com/t/sms-verification-help/21980/15 "2022-01-17T23:57:28Z")

</div>

Make a new screen that’s just white and make it the “Home Screen”

---

<div class="post-metadata">

**Author:** ![trble](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@trble](https://forum.adalo.com/u/trble)\
**Post date:** [January 18, 2022, 12:18am UTC](https://forum.adalo.com/t/sms-verification-help/21980/16 "2022-01-18T00:18:39Z")

</div>

Sure… But I thought the developers should be aware of this. Seems like a bug.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [January 28, 2022, 8:31pm UTC](https://forum.adalo.com/t/sms-verification-help/21980/18 "2022-01-28T20:31:44Z")

</div>

Closed on January 28, 2022, 8:31pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
