コード例 #1
0
ファイル: IndexController.php プロジェクト: easyguyme/pardus
 /**
  * Construct this object by extending the basic Controller class
  */
 public function __construct()
 {
     parent::__construct();
     // this entire controller should only be visible/usable by logged in users, so we put authentication-check here
     Auth::checkAuthentication();
     //check the IP whitelist
     Auth::checkIPAuthentication();
 }
コード例 #2
0
ファイル: TestController.php プロジェクト: easyguyme/pardus
 /**
  * Construct this object by extending the basic Controller class
  */
 public function __construct(LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     //check the IP whitelist
     Auth::checkIPAuthentication();
 }
コード例 #3
0
ファイル: LoginController.php プロジェクト: easyguyme/pardus
 /**
  * Construct this object by extending the basic Controller class. The parent::__construct thing is necessary to
  * put checkAuthentication in here to make an entire controller only usable for logged-in users (for sure not
  * needed in the LoginController).
  */
 public function __construct()
 {
     parent::__construct();
     //check the IP whitelist
     Auth::checkIPAuthentication();
 }