How To Connect And Verify User/admin Connection


I search to know how I can verify if user connected is a simple user, or a admin.

I have two tables on my database, "user" and "admin".

UserIdentity and controllers/SiteController are not changed yet

layouts/main contains isGuest proprety for some <li> containers.



you should read first to get knowledge about RBAC. may be it will help to find solution

Yes guy, it’s a good way to do this

I try this, this afternoon.

Can I have an exemple width a SQL table recognition ?

try this