Esempio n. 1
0
 public static function LoggedOutOnly()
 {
     // if user is logged in...
     if (Session::get('user_logged_in')) {
         // Session::add('feedback_negative', 'Error. To access this section of the website, you need to log-out first.');
         Teleport::to('error/you-shall-not-pass/log-out/');
         exit;
     }
 }
Esempio n. 2
0
 public function logout()
 {
     LoginModel::logout();
     Teleport::home();
 }