コード例 #1
0
ファイル: Sso.php プロジェクト: MateuszFlisikowski/cas
 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
ファイル: UserManager.php プロジェクト: coandacms/coanda-core
 /**
  * @return mixed
  */
 public function logout()
 {
     return $this->auth->logout();
 }
コード例 #5
0
 /**
  * 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
ファイル: UserController.php プロジェクト: PhonemeCms/cms
 public function logout()
 {
     $this->auth->logout();
     return $this->redirector->back();
 }
コード例 #9
0
ファイル: UserManager.php プロジェクト: anlutro/l4-core
 /**
  * Log out the current user.
  *
  * @return void
  */
 public function logout()
 {
     $this->auth->logout();
 }