#Nothing happens when i press on login

24 messages · Page 1 of 1 (latest)

raven kernel
#

I have 2 tables. users and dashboard_users , i want both to login through the same page, but the dashboard will have a random generated password to login so they can change it later, i have a page for login and i want both users and dashboard_users to login through the same page, how do i do it? Now when i try to login as a dashboardUser in inspect and network section, it gives me 302 error when i press login and nothing happens.

lone tendon
raven kernel
#

I do have roles

#

but i cant even login in the first place as dashboard_user

#

but it works perfectly fine as normal user

lone tendon
#

if you have roles then what is the point in you having different guards??

#

get rid of the guards, just use one guard for everything and your headaches will be no more

raven kernel
#

I will get rid of the guards

#

but i still have no idea how can i do it

lone tendon
#

Why do they need a different password for the dashboard to begin with, it's overcomplication

#

If you want to do invites with random passwords, then just make a normal user account with a random password, there's no need for the added complication

raven kernel
#

I want some people to have access for dashboard

#

and they are different from other users

#

i thought if i do it this way it would be easier

lone tendon
#

no, you just have to check the users role instead...

raven kernel
#

so i can have one database for user

#

and they should be able to access the dashboard

#

if they have the role to access dashboard?

lone tendon
#

yes

#

otherwise what is the point of roles

raven kernel
#

okay but what if i want to add a dashboard user

#

i want them to get an email with generated password

#

and when they login they imeediately have dashboard access