Jump to content

Question/Réponse: Comment empécher l'accès aux utilisateurs non enregistrés (redirigé sur la page de login)


Recommended Posts

Tout est dans le titre, copiez ça dans votre override/classes/FrontController.php (à créer si il n'existe pas)

<?php

class FrontController extends FrontControllerCore {

   public function __construct(){ 


       if(get_class($this) != 'AuthController') $this->auth = true;
       parent::__construct(); 

   }

}

?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...