コード例 #1
0
ファイル: AuthController.php プロジェクト: alexdachin/jobify
 public function getLogOut()
 {
     $auth = Auth::getInstance();
     $auth->logOut();
     $this->service->flash('You\'ve been logged out successfully!', 'success');
     return $this->response->redirect('/');
 }
コード例 #2
0
ファイル: AuthTest.php プロジェクト: alexdachin/jobify
 public function testCanLogOut()
 {
     $auth = Auth::getInstance();
     $auth->logIn(1);
     $auth->logOut();
     $this->assertTrue(!isset($_SESSION['jf_admin']));
 }
コード例 #3
0
 public function __construct($app)
 {
     parent::__construct($app);
     Auth::getInstance()->checkLoggedIn($this->response);
 }