# Simple PIN to access app

**URL:** <https://community.thunkable.com/t/simple-pin-to-access-app/292861>\
**Category:** Questions about Thunkable X\
**Created:** [October 28, 2019, 8:01pm UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861 "2019-10-28T20:01:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.higley.artistqu](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@ryan.higley.artistqu](https://community.thunkable.com/u/ryan.higley.artistqu)\
**Post date:** [October 28, 2019, 8:01pm UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/1 "2019-10-28T20:01:34Z")

</div>

I am creating an app to use in the classroom and I was hoping to make a very simple log-in screen where users would just need to know a 4 digit PIN to get access to the app. They don’t need to create a PIN or reset a PIN or anything, just enter in a 4 digit code, and if they have the right number they get access to the next page, and if not they get an error sentence or something. Thanks in advance for any help. 🙂

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [October 28, 2019, 8:51pm UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/2 "2019-10-28T20:51:49Z")

</div>

This is such a simple thing to do that I’m not sure you’ve read the tutorials or documentation.

Create a screen so when the app starts for the first time you have to set a PIN. You should be the first ever user so you get to set the PIN. Store the PIN in Local Storage.

Create another screen when the app start on subsequent occasions it asks for the PIN. Once it’s typed in compare it to Local Storage and if it’s right the user accesses it.

You can create a second PIN as well, one which only you know, and which will allow you to reset the PIN the users have.

---

<div class="post-metadata">

**Author:** ![ryan.higley.artistqu](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@ryan.higley.artistqu](https://community.thunkable.com/u/ryan.higley.artistqu)\
**Post date:** [October 28, 2019, 9:38pm UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/3 "2019-10-28T21:38:02Z")

</div>

Thank you for replying. Could you maybe point me to an example that does this I could look at in the community or something to remix? I’ll have a better chance of wrapping my head around the idea if I have something to look at. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [October 28, 2019, 10:58pm UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/4 "2019-10-28T22:58:10Z")

</div>

To be honest I don’t have any examples, I don’t even use Thunkable X. What I told you is from a quick glance at the documents to see what they call the internal database. The rest was my own “problem solving”.

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 29, 2019, 12:02am UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/5 "2019-10-29T00:02:12Z")

</div>

You may want to use the Firebase tool if you want people to access the app with the pin directly without having to enter the pin each time they open the app for the first time. Then, add a textbox, and compare the text they enter with the one in the firebase, if it matches, they get to the next screen, if not, it says pin incorrect. As simple as that.

---

<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:** [June 11, 2020, 4:48pm UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/6 "2020-06-11T16:48:57Z")

</div>

Hey @ryan.higley.artistqu - did you ever find a solution for this?

Here’s a tutorial we did up recently that should work for you. (feel free to replace my 2 digit pin with a 4 digit one! 😂 )

> [@Creating a Quiz with Admin Screen](http://community.thunkable.com/t/creating-a-quiz-with-admin-screen/607046):
>
> Motivation In response to [this question](http://community.thunkable.com/t/quiz-app-possible-with-thunkable/603977) in the Community yesterday, here’s a quick guide to adding an Admin section to your quiz apps. The two main requirements were: The Admin screen should be PIN protected. The Admin screen should allow you to add extra questions to the quiz. Demo Take a look at the working example [here](https://thunk.app/web-build/index.html?webAppId=tamchJ_EP&from=x) (the PIN is “42”) Component Tree This app has 4 screens to display each of the different user interfaces. [component\_tree] It also uses the [LocalDB](https://docs.thunkable.com/local-db) to store the questio…

cc. @Dean_Artis @AcrobatEpee

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [June 21, 2020, 12:14pm UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/7 "2020-06-21T12:14:10Z")

</div>

You can use a barcode instead. Choose a barcode and copy the code that appears. Paste that code in the app like this:

if value = (your pasted text)

do navigate to screen2

else

from label1 set visible to true  
from label1 set text to “Invalid barcode”

It can be done so with [this tool](https://x.thunkable.com/projectPage/5ed7a8fa505d4b951ab2eee2).

How was that method?

_Poll ([view on site](https://community.thunkable.com/t/simple-pin-to-access-app/292861/7))_

---

<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, 11:25am UTC](https://community.thunkable.com/t/simple-pin-to-access-app/292861/8 "2024-11-08T11:25:36Z")

</div>


