Can someone log to my site in other ways when the signup button is not clickable?
So how can I disable registration after I’ve registered myself?
It’s good UX to hide, disable or somehow signal to the user that they are already registered. eg grey the button, hide the button etc. (as you are already thinking)
All you need to do is on the workflows, have a condition or test that stops users already registered from registering again. It’s subtly tricky to do this, as you don’t want your User table privacy rules to be searchable by everyone (probably) (if registration means adding Users).
If you do try to register a user that is already registered with the email address - there will be an error - you can trap that error and manage it that way also.
I’m using the login template of bubble so it’s showing log out if I’m registered.
I meant After the inicial registration of admin (me) how to prevent others from registering and seeing the site?
Yes true, it is easy to show hidden elements with the developer console. Don’t rely on hiding elements as a security technique.
Ahh I misunderstood your question, apologies.
This post might help - https://forum.bubble.io/t/restricting-app-to-logged-in-users-only/42144/3
Is it enough to restrict it so it will not show to users that are not logged, or better leave the index without login and make it on another page with the same restriction?
If you do it like the example where you are checking the User “is logged in” in a workflow, that is enough to stop casual inspection in the developer console for hidden elements. And that can be on the same page., single page app style. Beyond “is logged in” you might also check for other conditions like “role is admin” (you create an attribute called role on the user for example)
There is another critical aspect to security called “Privacy Rules” you might have come across? If you are worried about security this is fundamental to understand.