Merge pull request #364 from apollopy/master

Too idealistic. Should allow the client and server have some time difference.
This commit is contained in:
Alex Bilbie 2015-09-04 08:28:14 +01:00
commit b78d8ca1d8

View File

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