mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Trigger E_USER_NOTICE instead of throwing an exception if key cannot be chmod to 600
This commit is contained in:
		| @@ -50,12 +50,13 @@ class CryptKey | |||||||
|             // Attempt to correct the permissions |             // Attempt to correct the permissions | ||||||
|             if (chmod($keyPath, 0600) === false) { |             if (chmod($keyPath, 0600) === false) { | ||||||
|                 // @codeCoverageIgnoreStart |                 // @codeCoverageIgnoreStart | ||||||
|                 throw new \LogicException( |                 trigger_error( | ||||||
|                     sprintf( |                     sprintf( | ||||||
|                         'Key file "%s" permissions are not correct, should be 600 instead of %s, unable to automatically resolve the issue', |                         'Key file "%s" permissions are not correct, should be 600 instead of %s, unable to automatically resolve the issue', | ||||||
|                         $keyPath, |                         $keyPath, | ||||||
|                         $keyPathPerms |                         $keyPathPerms | ||||||
|                     ) |                     ), | ||||||
|  |                     E_USER_NOTICE | ||||||
|                 ); |                 ); | ||||||
|                 // @codeCoverageIgnoreEnd |                 // @codeCoverageIgnoreEnd | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user