redirect from home to my account

0

With this code I force a login

if (!$this->context->customer->isLogged() && $this->php_self != 'authentication' && $this->php_self != 'password') {

Tools::redirect('index.php?controller=authentication?back=my-account');
}

For a user to log in before being able to perform an action in my store; Now in my case I must block the view of the home ie concentrate my users to just browse in the view my account, I'm not clear the correct way to do so from htaccess or from frontcontroller in the second case, how would you do it?

    
asked by Jose A. 20.09.2018 в 18:17
source

0 answers