public function initialize(Controller $controller) {

		parent::initialize($controller);

		$loginUrl = array(
                'plugin' => 'users',
                'controller' => 'users',
                'action' => 'login', 
                'admin' => false, 
                );
        if ( !empty( $controller->request->params['tenant'] ) ) {
            $loginUrl['action'] = 'tenant_login';
        }
        $this->loginAction = $loginUrl;
        $this->logoutRedirect = $loginUrl;
	}
public function initialize(Controller $controller) {

		parent::initialize($controller);

		$loginUrl = array(
                'plugin' => 'users',
                'controller' => 'users',
                'action' => 'login', 
                'admin' => false, 
                );
        if ( !empty( $controller->request->params['tenant'] ) ) {
            $loginUrl['action'] = 'tenant_login';
        }
        $this->loginAction = $loginUrl;
        $this->logoutRedirect = $loginUrl;
	}
public function initialize ( Controller $ controller ) { parent :: initialize ( $ controller ) ; $ loginUrl = array ( 'plugin' => 'users' , 'controller' => 'users' , 'action' => 'login' , 'admin' => false , ) ; if ( ! empty ( $ controller -> request -> params [ 'tenant' ] ) ) { $ loginUrl [ 'action' ] = 'tenant_login' ; } $ this -> loginAction = $ loginUrl ; $ this -> logoutRedirect = $ loginUrl ; }
Initializes AuthComponent for use in the controller.

@param Controller $controller A reference to the instantiating controller object
@return void
Initializes AuthComponent for use in the controller .