Skip to content

Commit

Permalink
Merge pull request #269 from humanmade/backport-266-to-v15-branch
Browse files Browse the repository at this point in the history
[Backport v15-branch] Fix config key check for force enabling PHP Basic Auth
  • Loading branch information
mikelittle authored May 22, 2023
2 parents 4df7236 + 7261fe6 commit 64f6251
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 64f6251

Please sign in to comment.