src/Auth/AuthMiddleware.php
public function isLoggedIn()
    {
        $loggedIn = $this->di->get("session")->has("user");
        if (!$loggedIn) {
            $this->di->get("response")->redirect("user/login");
            return false;
        }
        return true;
    }
public function isLoggedIn()
    {
        $loggedIn = $this->di->get("session")->has("user");
        if (!$loggedIn) {
            $this->di->get("response")->redirect("user/login");
            return false;
        }
        return true;
    }
public function isLoggedIn ( ) { $ loggedIn = $ this -> di -> get ( "session" ) -> has ( "user" ) ; if ( ! $ loggedIn ) { $ this -> di -> get ( "response" ) -> redirect ( "user/login" ) ; return false ; } return true ; }
Check if user is logged in.

@return boolean
Check if user is logged in .