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