From 1288bbc32bd68716495ec1e90db90be29a955f5a Mon Sep 17 00:00:00 2001 From: Ro Date: Sun, 28 Mar 2021 18:37:37 -0700 Subject: [PATCH] fixed checking session active state bug --- brain/data/Session.inc.php | 6 ++---- brain/views/dash/start.twig | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) 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 @@
STATUS: - {{ you }} + {{ status }} {% if status %} DASH INDEX {% else %}