Yii Framework Forum: Change Login Url For Cwebuser Multi Object ? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Change Login Url For Cwebuser Multi Object ? Rate Topic: -----

#1 User is offline   kevindng 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 31
  • Joined: 09-August 11

Posted 15 March 2013 - 11:55 PM

i have configured two CWebUser object for backend/frontend in my web applications. But when I implement access control list on backend background, it allway used redirect login url default of user component. How to change login url for backend background
my config like
'user'=>array(
    'class'=>'CWebUser',
    'stateKeyPrefix'=>'user_',
    'loginUrl'=>array("site/login"),
),
'backendUser'=>array(
    'class'=>'CWebUser',
    'stateKeyPrefix'=>'admin_',
    'loginUrl'=>array("backend/login"),
),


0

#2 User is offline   ikotee 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 24-April 13

Posted 27 April 2013 - 10:11 AM

View Postkevindng, on 15 March 2013 - 11:55 PM, said:

i have configured two CWebUser object for backend/frontend in my web applications. But when I implement access control list on backend background, it allway used redirect login url default of user component. How to change login url for backend background
my config like
'user'=>array(
    'class'=>'CWebUser',
    'stateKeyPrefix'=>'user_',
    'loginUrl'=>array("site/login"),
),
'backendUser'=>array(
    'class'=>'CWebUser',
    'stateKeyPrefix'=>'admin_',
    'loginUrl'=>array("backend/login"),
),





How did you configure redirect to your login in the first place? i have a similar challenge
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users