+ 2
How do i create a web page that allows for both admin and user logins' but different levels of privileges are accorded to both,
4 Answers
+ 5
You need to set up server side database which stores user info including their login token and privileges level.
An easy way would be:
Google Firebase Authentication
https://firebase.google.com/docs/auth
+ 3
Welcome! if you need such a page in the near future, maybe it makes sense to look at the ready-made solution? since it will take a long time to create such a page when you are just at the start your education
+ 2
As Gordon has stated you need a table in your database.
Let's call it *access_level* and assign 2 levels (admin, users.)
1.Admin has the ability to delete/add/deactivate a user.
3. Users can...? use the web-app.
Then use a conditional check on the login page to check the access level.
----
Usually you'd set the first Registration to be of the Superadmin How? Well, you do a check, since the first registration has an id of 1, you use that to set the access level of a superadmin.
I'd advise you to only have one super admin and add moderators, if need be that way you have powerful *PRIVILEGES*