# \[Solved\] How do I allow my users to reset their passwords?

**URL:** <https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800>\
**Category:** Questions about Thunkable X\
**Tags:** solved, auth\
**Created:** [July 20, 2021, 9:26pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800 "2021-07-20T21:26:13Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [July 20, 2021, 9:26pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/1 "2021-07-20T21:26:14Z")

</div>

Result :  
 ![그림2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/4/045befc68e5d6b3dfec3d915a8404f0319747eb8.jpeg)

Program block :

 ![그림1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/eccb4fad4909e48e25fd9d546d52a1d428c4e06b.jpeg)

---

<div class="post-metadata">

**Author:** ![bnice](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bnice/32/110648_2.png) [@bnice](https://community.thunkable.com/u/bnice)\
**Post date:** [July 20, 2021, 9:41pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/2 "2021-07-20T21:41:18Z")

</div>

Why are you setting the email to null in the init block?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 20, 2021, 10:55pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/3 "2021-07-20T22:55:28Z")

</div>

Hey @jumalcom222 - I’d highly recommend subscribing to the Thunkable YouTube channel if you haven’t done so already.

The wonderful @jane has a chapter about this exact topic:

[![](https://img.youtube.com/vi/tdgVeck-sOI/maxresdefault.jpg "Sign in Screen with Stored Variables - Thunkable Drag and Drop UI") ](https://www.youtube.com/watch?v=tdgVeck-sOI&t=517s)

---

<div class="post-metadata">

**Author:** ![sohan.s](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sohan.s/32/99887_2.png) [@sohan.s](https://community.thunkable.com/u/sohan.s)\
**Post date:** [July 20, 2021, 11:41pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/4 "2021-07-20T23:41:37Z")

</div>

I idea of a solution

the variable should be connected

 ![help](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ecb03538f691ef19d67e094915db291fbd7c3905.jpeg)

not divided into 2 blocks just look in the variables area for the connected block

 ![help2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/d/2d742fcd53a82113097d0ab5cf04e0f0ac8ce580.jpeg)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 21, 2021, 2:31am UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/5 "2021-07-21T02:31:17Z")

</div>

You are using variable by reference which is why you see the error. Use direct variable as you initialized it first. Go to variables drawer and pick the variable sEmail from the drawer.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 21, 2021, 2:32am UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/6 "2021-07-21T02:32:41Z")

</div>

@sohan.s  
This is not disconnected. This is using variables by reference and has its own use case.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [July 21, 2021, 12:18pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/7 "2021-07-21T12:18:22Z")

</div>

Is “app variable sEmail” only text ?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 21, 2021, 12:29pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/8 "2021-07-21T12:29:01Z")

</div>

use this one for the email in the `ResetPassword` block.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/e/fe81ca57052164a5891a4fee087dd8640a26c272.png)

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [July 21, 2021, 3:59pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/10 "2021-07-21T15:59:16Z")

</div>

(program)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/3/c304a34a9c756de3a2bff2e664e5a8fe91c5b471.jpeg)

(result–after click “forgot password button”)  
_- No received password reset email, too_

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

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 21, 2021, 4:10pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/11 "2021-07-21T16:10:13Z")

</div>

You are doing it **WRONG**. you are typing the text you should use the variable block not to type it yourself.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/ab161fd3b6ce8d336ef5f71cf39ccabc484f5b1d.png)

See this example and notice the color of the `app variable sEmail` not the same as yours.

You have to pick the variable from the `variable drawer` like this

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

Hope this is clear now.

Of course the variable should store the email of the user which should have been done previously. In the example above I typed a sample email address while initializing just to simplify the example.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [July 21, 2021, 4:38pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/12 "2021-07-21T16:38:39Z")

</div>

> [@muneer](#):
>
> Of course the variable should store the email of the user which should have been done previously. In the example above I typed a sample email address while initializing just to simplify the example.

What should I do if the app wants to send a password reset email to the mail that the customer input?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 21, 2021, 5:07pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/13 "2021-07-21T17:07:12Z")

</div>

You need to watch some tutorials and go through the examples.

See this a sample page where the user is required to enter his/her email and click the button.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/05ac1cfa757a55a9f6293c92279af84c95a2cd12.png)

The code behind the button will check that the email field in not empty and then use the entered email to send “ResetPassword” using the block.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6c367ab2b7d39ff78a1fb00157d4b622438e16ec.png)

Happy coding.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [July 23, 2021, 3:25pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/14 "2021-07-23T15:25:07Z")

</div>

Thank you for your tip, I solved the problem…

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:19pm UTC](https://community.thunkable.com/t/solved-how-do-i-allow-my-users-to-reset-their-passwords/1405800/15 "2024-11-08T13:19:38Z")

</div>


