Require special code for user to create an account

Hi,
Does anyone know how I could require the person who is about to sign up to my app to enter a special code in order to create an account? I want to make sure only people working in my company can create an account.
Second question… would it be possible to set a system in which the user’s account has to be validated by me before it is activated?

Create a data type “Code” and make an input on your sign up page. A User must type in a code correctly to sign up. So you can add DB entries for special codes.

Add a data field for the User data type, something like “activated? :yes /no” … that way, when they sign up, you can mark them as no… and you would need to manually activate them. Anything that you want to restrict on the frontend would check and see what their activated status is.

Tal
nocodify.com

create a Gsuite account, from there you can add your company members by email and have them use SSO to sign up for your Bubble application. Will also give you a headstart in terms of scheduling meetings together, collaborating and other related Gsuite features.

Create a new data type, and add a text datafield to it. Add an input that users need to fill to sign up. Then in the sign up workflow, fill the only when field, and in it, fill in something like: Do a search for codes, and inside it: text = input code’s value, :count > 0.

Then add an action after the sign up that deletes item: do a search for code, text=input code’s value. Click done, the click on :first item.

Hi, I just need this part, what you described, activated? Yes/No.

I already made that, but i cannot figure it out, how to do that on the login form. I am trying in the flow, when someone click button login, to of course check email and pass, and to check is user active or not, by using “Only when” Current User’s Active is “yes”.

Then nothing happens… I see in console button is clicked and process started, but login doesnt go through… If I remove “Only when” login is normal.

How to solve this?

Have you checked the privacy settings for the user’s Active field?

Everything is checked and rechecked… so so many times :dancer: But no chance to goes true if Only when is used.

Hi, i managed to fix it, with log out function and Only when condition… Immediately after user try to login, he is loged out (with condition “Only when user status is NO”
No for my status means it is not activated by admin. And show Pop Up element Info Text about this with same condition Only When user status is NO.