Passwords in the Database

Hello. Please tell me how can I solve the described problem.

I have a login page with email and password inputs.
When I enter the admin email (for a free account it is [your-appname][email protected]) I want to go to a special admin page. But the application asks for a password. What password should I enter to test the transition to the admin page?

Can you please be a little more descriptive and share screenshots if possible showing what you are trying to achieve.

I don’t know what screenshot to take. This is a standard sign up window where the user enters an email and password.
If the user enters a certain (admin) email and password, he gets to the admin page. In all other cases, users are taken to the menu page.
When I upgrade to a paid plan, I can set up an email and password in the app’s settings. On the free plan, I can’t do that. In this case, the admin e-mail is considered to be [your-appname][email protected] This is written in the manual. I want to know what is the admin password for the free plan.

That’s not the admin email. That is just the email address that Bubble is sending from.

What you need to do is create a User in your database and have an indicator of “Admin” Y/N. Then on login you can do the redirect.

Do you mean to create an additional column in the database yes/no and mark it as “yes” for the user whose e-mail will be admin? This may be a solution to the problem. But what I originally meant was:
1

Quote from the bubble manual:

Website admin email

This returns the admin email of the app. Without a paid Bubble plan or domain, the email will be [your-appname][email protected]. With a paid Bubble plan and domain, the email will be what is set in the Domain & Email section in the Settings Tab. Use this instead of hardcoding the email because it can change over time, such as signing up for a paid Bubble plan.

Again, that is the website admin email address.

It is not, by default, set up as a user of your app.

You would need to set up a User, either by signing up with that email, or by assinging a temporary password from “run as…”.

Then you will have a password, and can use a field on the user. I suspect that is what pretty much everyone is doing, not using the website admin.

Although they may very well be the same if you have admin@yourapp . com as a USER and WEBSITE ADMIN (where emails come from).

1 Like