fixed checking session active state bug

This commit is contained in:
Ro 2021-03-28 18:37:37 -07:00
parent f3aa86d472
commit 1288bbc32b
2 changed files with 3 additions and 5 deletions

View file

@ -29,15 +29,13 @@ class Session
Token::validate($data["token"], $secret) && Token::validate($data["token"], $secret) &&
Token::validateExpiration($data["token"], $secret) Token::validateExpiration($data["token"], $secret)
) { ) {
true;
} else {
false;
}
return true; return true;
} else { } else {
return false; return false;
} }
} else {
return false;
}
} }
public static function set($key, $value) public static function set($key, $value)

View file

@ -12,7 +12,7 @@
<div id="dash-index"> <div id="dash-index">
<div id="dash-index-wrapper"> <div id="dash-index-wrapper">
STATUS: STATUS:
{{ you }} {{ status }}
{% if status %} {% if status %}
DASH INDEX DASH INDEX
{% else %} {% else %}