/** * This is the method used to check whether or not * the user should be allowed to continue or * prompted for login. * * @return Illuminate\Http\RedirectResponse */ public function auth() { if ($this->lock->check()) { return; } return $this->redirect(); }
/** * Logs the user out and redirects to '/'. */ public function getLogout() { $this->lock->logout(); return $this->redirector->to('/'); }