mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Update CryptKey.php
Change the error message to reflect that the server will also accept 440 and 400 as a valid file permission
This commit is contained in:
parent
cf9acb32b8
commit
06a23a1dd0
@ -50,7 +50,7 @@ class CryptKey
|
||||
$keyPathPerms = decoct(fileperms($keyPath) & 0777);
|
||||
if (in_array($keyPathPerms, ['400', '440', '600', '660'], true) === false) {
|
||||
trigger_error(sprintf(
|
||||
'Key file "%s" permissions are not correct, should be 600 or 660 instead of %s',
|
||||
'Key file "%s" permissions are not correct, recommend changing to 600 or 660 instead of %s',
|
||||
$keyPath,
|
||||
$keyPathPerms
|
||||
), E_USER_NOTICE);
|
||||
|
Loading…
Reference in New Issue
Block a user