Limit user signup to specific domain

Is it possible to limit user sign ups to those from a certain domain only? My user db is a collection within Adalo, if that matters.

Hi!

Would you be able to clarify if you mean from certain domains for email? such as gmail.com etc?

Correct, I’m looking to limit app use to those within our company’s email domain. Exactly as you have guessed, such as limiting to gmail.com.

Thank you.

Here is my idea on this. You would need to create a custom sign up form.

For example for single email domain, I would use an input field where I would ask for the user’s email first part. Then place a text next to it such as @gmail.com. Then upon pressing the button you would sign the user up as input field + gmail.com

For multiple domains, you could place an input field + dropdown with the domains that can be selected and on sign up: email = input + dropdown value

I would also add some email validation after the sign up flow.

2 Likes

Mine was a bit of an overkill :smiley: However the solution I provided with the dropdown would allow for multiple domains to be included just in case someone needs it. But for single domains @oper2k solution is easier and more elegant

1 Like

Just some updated points on this. The method “contains your domain” could lead to users still able to sign up. Lets say your domain is testdomain.com

Users would be able to sign up with testdomain.com@gmail.com, testdomain.com1@gmail.com, testdomain.com2@gmail.com because “contains” does not limits to the domain. It checks the entire email.

1 Like

But if we changed contains to, to **@**yourdomain.com it should work correct?

1 Like

Yes, that should work.

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