예제 #1
0
 public function logout()
 {
     if (phpCAS::isSessionAuthenticated()) {
         if ($this->auth->check()) {
             $this->auth->logout();
         }
         Session::flush();
         phpCAS::logout();
         exit;
     }
 }
예제 #2
0
파일: Sso.php 프로젝트: rroslaniec/cas
 /**
  * This method is used to logout from CAS
  *
  * @param string $service a URL that will be transmitted to the CAS server to do a redirect after logout
  *
  * @return none
  */
 public function logout($service = "")
 {
     if (phpCAS::isSessionAuthenticated()) {
         if ($this->auth->check()) {
             $this->auth->logout();
         }
         $this->session->flush();
         if ($service != "") {
             phpCAS::logoutWithRedirectService($service);
         } else {
             phpCAS::logout();
         }
         exit;
     }
 }
예제 #3
0
 /**
  * Log out the user.
  * 
  * @return \Response
  */
 public function destroy()
 {
     $this->auth->logout();
     return redirect('/');
 }
예제 #4
0
 /**
  * @return mixed
  */
 public function logout()
 {
     return $this->auth->logout();
 }
 /**
  * Log the user out
  *
  * @return mixed
  */
 public function getLogout()
 {
     $this->auth->logout();
     return View::make('auth.logout');
 }
예제 #6
0
 /**
  * Handle the command.
  *
  * @param $command
  */
 public function handle($command)
 {
     return $this->authenticate->logout();
 }
예제 #7
0
 /**
  * Logout user
  *
  * @return mixed
  */
 public function getLogout()
 {
     $this->auth->logout();
     return $this->redirectRoute('admin.auth.get_login')->with('success_message', $this->trans->get('messages.auth.success_logout'));
 }
예제 #8
0
 public function logout()
 {
     $this->auth->logout();
     return $this->redirector->back();
 }
예제 #9
0
 /**
  * Log out the current user.
  *
  * @return void
  */
 public function logout()
 {
     $this->auth->logout();
 }