D
D
des1roer2015-06-21 05:29:43
Yii
des1roer, 2015-06-21 05:29:43

Yii 2 auto-authorization via Postgres?

I'm using yii 2.0.4 advanced, the idea is that the user can't login himself. I enter it into the database. The standard application has a signup. You need to disable it and leave only the functionality of entering a login and password. Probably simple, but I can’t figure out what to do right off the bat. It probably makes sense to make an authorization like admin \ pass for the back, and for users already their own

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
matperez, 2015-06-21
@matperez

Too general question.
If you are using the popular dektrium/yii2-user, then it has a corresponding parameter in the module settings https://github.com/dektrium/yii2-user/blob/master/...
There is no need to do separate authorization for users and admins. It’s enough to create an admin once and remove the possibility of registering on the frontend altogether.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question