Answer the question
In order to leave comments, you need to log in
2 authorization modules
Good day.
I need an idea how to tie 2 authorization modules with different “authentication channels” in YII
. I have such a situation that users can log in on the frontend in the ISP billing. This is now implemented and works great. But the site must have an admin panel (a separate module) in which I would like to make authorization separate and not tied to billing in any way, which is quite logical, because. billing cannot know anything about the administrator.
What will be the ideas?
Answer the question
In order to leave comments, you need to log in
Look at the implementation of the Gii module
github.com/yiisoft/yii/blob/master/framework/gii/GiiModule.php
It uses authorization separate from the main application - inside the module ( own useridenity , and for CWebUser - 'stateKeyPrefix'=>'gii' , )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question