F
F
frontendo2017-02-25 14:37:26
PHP
frontendo, 2017-02-25 14:37:26

How to properly organize the authorization of the site and the admin panel?

I'm starting to make a small application - a list of tasks. To access tasks, you will need authorization, there will also be an admin panel for the application, and authorization is also needed there. And the question immediately arises. Do separate authorization or general, simply by adding separate rights to use the admin panel?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Timofeev, 2017-02-25
@frontendo

A question from the category "Dear, should I wear red or blue?". As you do, so be it. A matter of taste. I do general. 1 table with users and 1-3 more tables for RBAC.

M
McBernar, 2017-02-25
@McBernar

My God, why does every second person on the Toaster advise not to do anything with his hands, but immediately grab the framework because of any little thing? Well, after all, then every year there will be less and less developers who understand the language and more and more decoy coders who hide their heads in the sand if the task goes beyond the scope of the framework. Why are you recommending this?

A
Artem, 2017-02-25
@devspec

In the right frameworks, user roles are used for this. If you are going to write in pure PHP - then don't do it, use the right framework)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question