Too idealistic. Should allow the client and server have some time difference.

This commit is contained in:
ApolloPY 2015-08-21 17:17:51 +08:00
parent 2496653968
commit c496df98e4

View File

@ -84,7 +84,7 @@ class MAC extends AbstractTokenType implements TokenTypeInterface
return;
}
if ((int) $params->get('ts') !== time()) {
if (abs($params->get('ts') - time()) > 3600) {
return;
}