fixed checking session active state bug
This commit is contained in:
parent
f3aa86d472
commit
1288bbc32b
2 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div id="dash-index">
|
||||
<div id="dash-index-wrapper">
|
||||
STATUS:
|
||||
{{ you }}
|
||||
{{ status }}
|
||||
{% if status %}
|
||||
DASH INDEX
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in a new issue