G
G
GSmaster2016-02-01 11:22:05
Yii
GSmaster, 2016-02-01 11:22:05

How to change loginUrl to your own?

I am using yii 1 latest version.
In a standard Blog app, I'm trying to change the user's loginUrl

// application components
  'components'=>array(

    'user'=>array(
    // enable cookie-based authentication
      'loginUrl' => array('site/login'),	
      'allowAutoLogin'=>true,
    ),

but nothing happens, that is, it doesn’t matter at all which address to write.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2016-02-01
@VladimirAndreev

m.b. caching?
and nothing happens - does the address remain the same all the time?

G
GSmaster, 2016-02-01
@GSmaster

yii is installed out of the box, Denver
did not make any settings on the local machine - I don’t even know where to dig
, although I changed the rules in the urlManager and they work fine, that is

'manager/login' => 'site/login', // Add this 
  'manager/logout' => 'site/logout', // Add this

they work fine, that is, the page with the login handicap opens both by site/login and by manager/login,
but I want to remove site/login - that is, hide the standard login page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question