Admin page button

How can I create a button on my homepage that only I can use to access the admin dashboard?

Hello ,

I have another approach for this case.

I have created an admin panel page and not listed in application pages , only i know the page URL. ( Exp : yourapplicatipn.app/superadmin )

All Design Approach

I have created admin yes/no datapoint to check the user’s status in user database. Do not pass this step : make it default to no.

When you navigate to page it has a popup for the mail address to check if you are admin or not. Underneath the popup there is no data loaded at first with conditional setup. You put your mail address and click log in , in all cases it navigates you to home page again. if you are admin, sends magical login link via e-mail.

It is a bit long workflow however , it is the most sensitive thing in an application so , i have designed it this way.

  • No exposed link to your admin panel.
  • No any other user can see the data by mistake , even if they are logged in.
  • No password to protect for admin panel.

Hope that helps.

Why don’t you just put the button on your page and set it to not visible on page load…

then add a condition that when the current user’s type is admin the button is visible?

1 Like

You have to add an Only When conditional on the Event, like my example. But if someone know’s the link to the admin page, they can still access it unless there is a 302 redirect on the admin page. I would say brush up your Bubble knowledge on 302 redirects. Look up the forum or online tutorials.

Here’s a tutorial: Tutorial


Pretty sure I can hack it if he takes your advice.

1 Like

I also use a workflow on the admin page that won’t allow anyone to view the page even if they hack the button.

I did something similar, I made a heading text a link, if the current user IsAdmin it will take them to the admin page.

I didn’t want to make it obvious
Plus as you said, only the elements on the admin page are visible to admins so even if they somehow got there, they can’t see/do anything.

2 Likes

That’s a good idea you have there!