X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2Fapi%2FApiUtils.php;h=05a2840a6221d3c50c215c7994415c586b01677c;hb=2883c6d0a71db174ee8df7548178a8fbee486e25;hp=eb1ca9bc2b6230e944350759c33386acced2770f;hpb=efb7d21b52eb033530e80e5e49d175e6e3b031f4;p=github%2Fshaarli%2FShaarli.git diff --git a/application/api/ApiUtils.php b/application/api/ApiUtils.php index eb1ca9bc..05a2840a 100644 --- a/application/api/ApiUtils.php +++ b/application/api/ApiUtils.php @@ -1,4 +1,5 @@ iat) + if ( + empty($payload->iat) || $payload->iat > time() || time() - $payload->iat > ApiMiddleware::$TOKEN_DURATION ) {