mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Merge pull request #364 from apollopy/master
Too idealistic. Should allow the client and server have some time difference.
This commit is contained in:
		@@ -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;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user