Skip to content

Commit fd54399

Browse files
committed
add additional checking of payload
1 parent eb83a27 commit fd54399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Phalcon/Auth/Auth.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function check(TokenGetter $parser, string $key) : bool
5757
}
5858

5959
$payload = $this->decode($token, $key);
60-
if(!$payload) {
60+
if(!$payload || empty($payload)) {
6161
return false;
6262
}
6363

0 commit comments

Comments
 (0)