Answer the question
In order to leave comments, you need to log in
How to secure admin login?
Hello.
How can I secure the admin panel?
I haven't done any serious projects before, so I don't know.
I make the front on react, redux, react-router.
Server in php, for requests I use pdo.
Now the entrance to the admin panel is implemented as follows:
In the address bar, I add /admin to the path,
There is a login form, ... I
check the user status, if it is root or admin, then I change the redux state, change isAdmin to true.
And all if isAdmin is true I have access to the admin panel.
I don't think it's worth it, but I don't know how.
Answer the question
In order to leave comments, you need to log in
ravshan selimov ,
isAdmin from redux state
I check authorization on the server,
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question