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;
	}