Use this instead for the controller code
Class ControllerCommonLogin extends Controller {
public function index() {
if($this->config->get('config_store_id') == 1) { // if desired store, continue checking
$skip = array(
'account/login',
'account/register',
);
$route = empty($this->request->get['route']) ? 'common/home' : $this->request->get['route'];
if(!$this->customer->isLogged()) { // Check user isn't logged in
if(!in_array($route, $skip)) { // Redirect if route isn't account/login
$this->redirect($this->url->link('account/login', '', 'SSL'));
}
}
}
}
}