Skip to content

Commit

Permalink
Merge pull request #268 from humanmade/backport-266-to-v14-branch
Browse files Browse the repository at this point in the history
[Backport v14-branch] Fix config key check for force enabling PHP Basic Auth
  • Loading branch information
mikelittle authored May 22, 2023
2 parents e9a50c5 + 1672051 commit 77d5faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/php_basic_auth/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function define_credentials() {
*/
function force_enable( $should_enable ) {
$environment = Altis\get_environment_type();
$env_config = Altis\get_config()['environments'][ $environment ]['modules']['security']['basic-auth'] ?? [];
$env_config = Altis\get_config()['environments'][ $environment ]['modules']['security']['php-basic-auth'] ?? [];

// If there's no config, use the existing values.
if ( empty( $env_config ) || ! is_array( $env_config ) ) {
Expand Down

0 comments on commit 77d5faf

Please sign in to comment.