Exemplo n.º 1
0
 public function getLogOut()
 {
     $auth = Auth::getInstance();
     $auth->logOut();
     $this->service->flash('You\'ve been logged out successfully!', 'success');
     return $this->response->redirect('/');
 }
Exemplo n.º 2
0
 public function testCanLogOut()
 {
     $auth = Auth::getInstance();
     $auth->logIn(1);
     $auth->logOut();
     $this->assertTrue(!isset($_SESSION['jf_admin']));
 }
Exemplo n.º 3
0
 public function __construct($app)
 {
     parent::__construct($app);
     Auth::getInstance()->checkLoggedIn($this->response);
 }