Beispiel #1
0
 /**
  * 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();
 }
Beispiel #2
0
 /**
  * Construct this object by extending the basic Controller class
  */
 public function __construct(LoggerInterface $logger = null)
 {
     parent::__construct($logger);
     //check the IP whitelist
     Auth::checkIPAuthentication();
 }
Beispiel #3
0
 /**
  * Show user's PRIVATE profile
  * Auth::checkAuthentication() makes sure that only logged in users can use this action and see this page
  */
 public function showProfile()
 {
     Auth::checkAuthentication();
     $this->View->render('login/showProfile', array('user_name' => Session::get('user_name'), 'user_email' => Session::get('user_email'), 'user_gravatar_image_url' => Session::get('user_gravatar_image_url'), 'user_avatar_file' => Session::get('user_avatar_file'), 'user_account_type' => Session::get('user_account_type')));
 }