mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 14:20:29 -04:00
Change secrets from being stored in flat files to being stored in PHP INI configuration
This commit is contained in:
parent
9d36a7c013
commit
0875e697b4
10 changed files with 24 additions and 32 deletions
|
@ -28,7 +28,7 @@ try{
|
|||
$hashAlgorithm = $splitHash[0];
|
||||
$hash = $splitHash[1];
|
||||
|
||||
if(!hash_equals($hash, hash_hmac($hashAlgorithm, $post, preg_replace("/[\r\n]/ius", '', file_get_contents(GITHUB_SECRET_FILE_PATH))))){
|
||||
if(!hash_equals($hash, hash_hmac($hashAlgorithm, $post, get_cfg_var('se.secrets.github.se_vcs_bot.secret')))){
|
||||
throw new Exceptions\InvalidCredentialsException();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue