diff --git a/brain/data/Session.inc.php b/brain/data/Session.inc.php index c3a2266..12e8596 100644 --- a/brain/data/Session.inc.php +++ b/brain/data/Session.inc.php @@ -29,12 +29,10 @@ class Session Token::validate($data["token"], $secret) && Token::validateExpiration($data["token"], $secret) ) { - true; + return true; } else { - false; + return false; } - - return true; } else { return false; } diff --git a/brain/views/dash/start.twig b/brain/views/dash/start.twig index 853f564..d142948 100644 --- a/brain/views/dash/start.twig +++ b/brain/views/dash/start.twig @@ -12,7 +12,7 @@