# \[Solved\] Sign Up Check Mail

**URL:** <https://community.thunkable.com/t/solved-sign-up-check-mail/1976531>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [July 26, 2022, 1:51pm UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531 "2022-07-26T13:51:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yigitishesabigng](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@yigitishesabigng](https://community.thunkable.com/u/yigitishesabigng)\
**Post date:** [July 26, 2022, 1:51pm UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/1 "2022-07-26T13:51:28Z")

</div>

If the mail added to the database is the mail registered to the database, how can I give a warning when the button is pressed?

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [July 26, 2022, 4:35pm UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/2 "2022-07-26T16:35:19Z")

</div>

What kind of warning are you looking for? Can you provide more information please?

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [July 26, 2022, 11:07pm UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/3 "2022-07-26T23:07:43Z")

</div>

how about an alert block?

---

<div class="post-metadata">

**Author:** ![yigitishesabigng](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@yigitishesabigng](https://community.thunkable.com/u/yigitishesabigng)\
**Post date:** [July 27, 2022, 11:51am UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/4 "2022-07-27T11:51:02Z")

</div>

The warning I’m looking for is “this email address is already registered, please enter a different email address or login with your registered email address” if the registered email address is entered while the user is registering. I want to issue a warning, warning is easy but I couldn’t figure out how to create that condition block.  
@zander  
@manyone

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [July 27, 2022, 11:56am UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/5 "2022-07-27T11:56:31Z")

</div>

Firebase does all of the heavy lifting for you. Here is the condition you need to check:  
If error:  
if error = ‘Firebase: The email address is already in use by another account. (auth/email-already-in-use).’  
do alert.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/1/01ce667c240759b7335010a51055a82206918274.png)

---

<div class="post-metadata">

**Author:** ![yigitishesabigng](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@yigitishesabigng](https://community.thunkable.com/u/yigitishesabigng)\
**Post date:** [July 27, 2022, 2:00pm UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/6 "2022-07-27T14:00:14Z")

</div>

Thanks for your help, I want to ask one more thing. There is at least one number requirement in the password, how can I get the error “You must use at least one number in the password” when it is not entered?

I didn’t put the condition, I think it’s automatic on firebase.

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [July 27, 2022, 2:48pm UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/7 "2022-07-27T14:48:36Z")

</div>

So firebase doesn’t require a number however you could do something like this to check to see if the password input text contains a number. If it doesn’t you can set an alert and say “must contain a number”

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/9/e9519897bd8dae6064e8ddab8431f3e5c8936eab.png)

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [July 27, 2022, 3:00pm UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/8 "2022-07-27T15:00:44Z")

</div>

Here is a more or less complete example. You just need to add your firebase API key. In this example I check to ensure that the password contains a number. You could repeat the same process to check to see if there is a special character or if it’s a certain length.

Let me know if you need more help 🙂

Edit: I created a more concrete example: [Project Link](https://x.thunkable.com/projects/62e1506ef20a000226edb2be/ebe3fb37-ac37-4290-bf7b-3023e0a974d4/designer)

---

<div class="post-metadata">

**Author:** ![yigitishesabigng](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@yigitishesabigng](https://community.thunkable.com/u/yigitishesabigng)\
**Post date:** [July 28, 2022, 8:47am UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/9 "2022-07-28T08:47:44Z")

</div>

Thanks for your efforts and interest.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [October 26, 2022, 8:47am UTC](https://community.thunkable.com/t/solved-sign-up-check-mail/1976531/10 "2022-10-26T08:47:58Z")

</div>

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